.fsm-measurements-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.fsm-measurements-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.measurement-group {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.measurement-group h4 {
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.measurement-input {
    margin-bottom: 15px;
}

.measurement-input label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

.measurement-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.measurement-input.date-input p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
    padding: 8px;
    border-radius: 4px;
        font-weight: 900;
}

.flex-row {
    display: flex;
    gap: 20px;
}

.flex-row .measurement-input {
    flex: 1;
}

.photo-upload {
    margin-bottom: 20px;
}

.photo-upload label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

.photo-input-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.photo-input-container input[type="file"] {
    flex: 1;
    max-width: 300px;
}

.photo-preview {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    max-width: 200px;
    max-height: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.existing-photo {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.existing-photo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.submit-measurements {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-measurements:hover {
    background-color: #005177;
}

.fsm-measurements-history {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#measurements-chart {
    margin-bottom: 30px;
    min-height: 400px;
}

#measurements-table {
    overflow-x: auto;
}

/* Modal Styles */
.fsm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fsm-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.fsm-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
}

.fsm-modal-close:hover {
    color: #333;
}

/* Weekly Measurement Button */
.log-weekly-measurements {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: 10px;
    width: 100%;
}

.log-weekly-measurements:hover {
    background-color: #218838;
}

.log-weekly-measurements[data-has-measurements="1"] {
    background-color: #17a2b8;
}

.log-weekly-measurements[data-has-measurements="1"]:hover {
    background-color: #138496;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
        gap: 10px;
    }

    .fsm-modal-content {
        padding: 20px;
        width: 95%;
    }

    .measurement-group {
        padding: 10px;
    }

    .photo-input-container {
        flex-direction: column;
    }

    .photo-input-container input[type="file"] {
        max-width: 100%;
    }
}

/* Form Template Container */
#measurements-form-template {
    display: none;
}
