/* Styles specific to profile data page */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.module {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.module-title {
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    font-family: 'Playfair Display', serif;
}

.table-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

/* Fix width for the first column (subjects) */
table th:first-child,
table td:first-child {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    background-color: #f2f2f2;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

.subject-row {
    display: flex;
    align-items: center;
}

.subject-input {
    min-width: 250px;
    padding: 5px;
    width: 90%;
}

.data-input {
    padding: 5px;
    width: 90%;
}

.drag-handle {
    cursor: move;
    color: #999;
    font-size: 18px;
    text-align: center;
    padding: 0 5px;
    margin-right: 5px;
}

.delete-btn {
    background: none;
    border: none;
    color: #f44336;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.draggable-row {
    cursor: move;
}

.draggable-row:hover {
    background-color: #f9f9f9;
}

.date-cell {
    position: relative;
    white-space: nowrap;
    padding-right: 24px;
}

.max-limit-warning {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 8px;
    text-align: center;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.report-modal {
    width: 80%;
    margin: 5% auto;
}

.report-content {
    max-height: 70vh;
    overflow-y: auto;
    margin: 20px 0;
}

.profile-info-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-info-card {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-info-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-field {
    margin-bottom: 15px;
}

.info-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9rem;
}

.info-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.info-field input:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .profile-info-section {
        flex-direction: column;
    }
}