/* Dashboard Widgets */
.ft-dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.ft-widget {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 15px;
}

.ft-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Exercise Manager */
.ft-filters {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccd0d4;
}

.ft-filters form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Modal */
.ft-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.ft-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.ft-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Form Fields */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field select {
    width: 100%;
    max-width: 100%;
}

.form-field select[multiple] {
    height: 100px;
}

#exercise-image-preview {
    margin: 10px 0;
    max-width: 200px;
}

#exercise-image-preview img {
    max-width: 100%;
    height: auto;
}

.submit-wrapper {
    margin-top: 20px;
    text-align: right;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .ft-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ft-filters form > * {
        width: 100%;
    }
}
