/* ==================== 
   Profile Page Styles
   ==================== */

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .profile-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(230, 57, 70, 0.15);
}

.profile-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card h2 i {
    color: #e63946;
    font-size: 1.3rem;
}

/* Form Styles */
.profile-card .form-group {
    margin-bottom: 1.5rem;
}

.profile-card .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.profile-card .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-primary);
}

.profile-card .form-group input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.profile-card .form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Button Styles */
.profile-card .btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.profile-card .btn-primary {
    background: linear-gradient(135deg, #e63946, #f72585);
    color: white;
}

.profile-card .btn-primary:hover {
    background: linear-gradient(135deg, #d62839, #e01571);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.profile-card .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.profile-card .btn-primary.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Message Styles */
.profile-card .auth-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: none;
}

.profile-card .auth-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.profile-card .auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.profile-card .auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.profile-card .auth-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-card h2 {
        font-size: 1.3rem;
    }
}

/* Navigation active state */
.nav-links a.active {
    color: #e63946;
    font-weight: 600;
}

/* Logout button styling comes from dashboard.css */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    padding: 0;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 2rem;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin: 1rem 0;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.modal-body ul li:before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.modal-footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-modal {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 0.75rem;
        gap: 1rem;
    }
    
    .profile-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .profile-card h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .profile-card .form-group {
        margin-bottom: 1rem;
    }
    
    .profile-card .form-group input,
    .profile-card .form-group textarea {
        padding: 0.75rem 0.875rem;
        font-size: 16px;
        min-height: 44px;
    }
    
    .profile-card .btn {
        padding: 0.75rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

/* ==================== */
/* Dark Mode Styles */
/* ==================== */
body.dark-mode {
    .profile-card {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    .profile-card h2 {
        color: var(--text-primary);
    }
    
    .profile-card .form-group label {
        color: var(--text-primary);
    }
    
    .profile-card .form-group input,
    .profile-card .form-group textarea {
        background: var(--input-bg);
        border-color: var(--input-border);
        color: var(--text-primary);
    }
    
    .profile-card .form-group input:focus,
    .profile-card .form-group textarea:focus {
        border-color: var(--primary-color);
        background: var(--bg-primary);
    }
    
    .profile-card .form-group small {
        color: var(--text-secondary);
    }
    
    .modal-content {
        background: var(--card-bg);
        color: var(--text-primary);
    }
    
    .modal-header {
        border-bottom-color: var(--border-color);
    }
    
    .modal-header h2 {
        color: var(--text-primary);
    }
    
    .modal-body {
        color: var(--text-primary);
    }
    
    .modal-body ul li {
        color: var(--text-secondary);
    }
}
