/* Profile Page Layout */
.profile-page-container {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.profile-hero-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #63748A, #2E3E53);
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(46, 62, 83, 0.2);
    position: relative;
    margin: auto;
    margin-bottom: 40px;
    max-width: 75%;
}

.profile-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* Navigation Sidebar */
.profile-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px 0;
    box-shadow: 0 8px 25px rgba(46, 62, 83, 0.1);
    border: 1px solid rgba(99, 116, 138, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.profile-nav-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D1E34;
    margin-bottom: 25px;
    padding: 0 30px;
    text-align: center;
}

.profile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav-item {
    margin: 0;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #63748A;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.profile-nav-link:hover {
    background: rgba(99, 116, 138, 0.1);
    color: #2E3E53;
    border-left-color: #63748A;
}

.profile-nav-link.active {
    background: linear-gradient(135deg, rgba(99, 116, 138, 0.2), rgba(46, 62, 83, 0.1));
    color: #0D1E34;
    border-left-color: #2E3E53;
    font-weight: 600;
}

.profile-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

/* Mobile Dropdown */
.profile-mobile-nav {
    display: none;
    margin-bottom: 30px;
}

.profile-mobile-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #63748A;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(99, 116, 138, 0.1);
    color: #0D1E34;
    font-weight: 500;
}

/* Main Content Area */
.profile-main-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(46, 62, 83, 0.1);
    border: 1px solid rgba(99, 116, 138, 0.2);
    overflow: hidden;
}

.profile-content-header {
    background: linear-gradient(135deg, rgba(99, 116, 138, 0.1), rgba(46, 62, 83, 0.05));
    padding: 30px 40px;
    border-bottom: 1px solid rgba(99, 116, 138, 0.2);
}

.profile-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0D1E34;
    margin: 0 0 8px 0;
}

.profile-content-subtitle {
    font-size: 1rem;
    color: #63748A;
    margin: 0;
}

.profile-content-body {
    padding: 40px;
}

/* Form Styles */
.profile-form {
    display: grid;
    gap: 25px;
}

.profile-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
}

.profile-form-group.full-width {
    grid-column: 1 / -1;
}

.profile-form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2E3E53;
    margin-bottom: 8px;
    margin-left: 4px;
}

.profile-form-input,
.profile-form-select {
    padding: 15px 20px;
    border: 2px solid #63748A;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(99, 116, 138, 0.1);
    color: #0D1E34;
    transition: all 0.3s ease;
}

.profile-form-input:focus,
.profile-form-select:focus {
    outline: none;
    border-color: #2E3E53;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 62, 83, 0.1);
}

.profile-form-input:read-only {
    background: rgba(99, 116, 138, 0.2);
    color: #63748A;
    cursor: not-allowed;
}

.profile-form-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2E3E53, #0D1E34);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(46, 62, 83, 0.3);
    justify-self: center;
    min-width: 200px;
}

.profile-form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 62, 83, 0.4);
}

/* Status Messages */
.profile-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-message.success {
    background: linear-gradient(135deg, rgba(201, 229, 224, 0.3), rgba(42, 82, 72, 0.1));
    border: 1px solid #C9E5E0;
    color: #2A5248;
}

.profile-message.error {
    background: linear-gradient(135deg, rgba(210, 170, 146, 0.3), rgba(126, 88, 65, 0.1));
    border: 1px solid #D2AA92;
    color: #7E5841;
}

.message-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.profile-action-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #63748A, #445770);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(99, 116, 138, 0.2);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 116, 138, 0.3);
    background: linear-gradient(135deg, #445770, #2E3E53);
}

.action-btn-icon {
    width: 18px;
    height: 18px;
    background: rgba(210, 170, 146, 0.3);
    padding: 4px;
    border-radius: 4px;
    filter: brightness(0) saturate(100%) invert(8%) sepia(23%) saturate(1459%) hue-rotate(204deg) brightness(97%) contrast(94%);
}

/* Table Styles */
.profile-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 62, 83, 0.1);
    border: 1px solid rgba(99, 116, 138, 0.2);
    margin-top: 20px;
    width: 100%;
}

.profile-table-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 116, 138, 0.1), rgba(46, 62, 83, 0.05));
    border-bottom: 1px solid rgba(99, 116, 138, 0.2);
}

.profile-table-search {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #63748A;
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(99, 116, 138, 0.1);
    box-sizing: border-box;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.profile-table th {
    padding: 15px 12px;
    background: rgba(99, 116, 138, 0.1);
    color: #2E3E53;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid rgba(99, 116, 138, 0.2);
    cursor: pointer;
    transition: background-color 0.3s ease;
    word-wrap: break-word;
}

.profile-table th:hover {
    background: rgba(99, 116, 138, 0.2);
}

.profile-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(99, 116, 138, 0.1);
    color: #0D1E34;
    word-wrap: break-word;
    vertical-align: top;
}

.profile-table tbody tr:hover {
    background: rgba(99, 116, 138, 0.05);
}

/* Ensure table is responsive */
.profile-table tbody tr {
    display: table-row;
}

.profile-table tbody {
    display: table-row-group;
}

/* Back to Home Button */
.profile-back-home {
    text-align: center;
    margin: 40px 0;
}

.back-home-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #C9E5E0, #3F6F63);
    border: none;
    border-radius: 12px;
    color: #0D1E34;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 229, 224, 0.3);
    text-decoration: none;
    display: inline-block;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 229, 224, 0.4);
    background: linear-gradient(135deg, #3F6F63, #2A5248);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .profile-sidebar {
        display: none;
    }
    
    .profile-mobile-nav {
        display: block;
    }
    
    .profile-hero-title {
        font-size: 2rem;
    }
    
    .profile-content-header,
    .profile-content-body {
        padding: 25px 20px;
    }
    
    .profile-form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-hero-header {
        padding: 20px 15px;
    }
    
    .profile-hero-title {
        font-size: 1.75rem;
    }
    
    .profile-content-header,
    .profile-content-body {
        padding: 20px 15px;
    }
    
    .profile-form-input,
    .profile-form-select,
    .profile-mobile-select {
        padding: 12px 15px;
    }
}

/* Animation */
.profile-content-fade-in {
    animation: profileFadeIn 0.3s ease-out;
}

@keyframes profileFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
