/* Reset and Base Styles - inherit from main styles.css */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Profile specific styles */
.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.profile-avatar {
    font-size: 6rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.profile-header h1 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-header p {
    color: #718096;
    font-size: 1rem;
}

/* Profile Details */
.profile-details {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.info-group {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
}

.info-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
}

.info-group input {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.info-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.update-btn, .change-password-btn, .logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.update-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.change-password-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.change-password-btn:hover {
    background: #cbd5e0;
}

.logout-btn {
    background: #ef4444;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

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

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: #a0aec0;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #4a5568;
}

.download-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.download-options button, .delete-options button {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delete-options {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        margin: 1rem;
        padding: 10px;
    }

    .profile-details, .profile-header {
        padding: 1.5rem;
    }

    .update-btn, .change-password-btn, .logout-btn {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .document-item i.fa-download {
        align-self: flex-end;
    }
    
    .download-options {
        flex-direction: column;
    }
    
    .modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 1.5rem;
    }
}


/* Profile Icon */
.profile-icon {
    font-size: 1.5rem;
    margin-left: auto;
}

.profile-icon a {
    color: white;
    text-decoration: none;
}

.profile-icon a:hover {
    opacity: 0.9;
}
    

/* Documents Section Styles */
.documents-container {
    margin-top: 1rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: #cbd5e0;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.document-actions i {
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.document-actions i.fa-download {
    color: #3b82f6;
}

.document-actions i.fa-download:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.document-actions i.fa-trash {
    color: #ef4444;
}

.document-actions i.fa-trash:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.document-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    cursor: pointer;
}

.document-icon {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.document-details h4 {
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.document-details p {
    color: #718096;
    font-size: 0.875rem;
}

.document-item i.fa-download {
    color: #667eea;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.document-item:hover i.fa-download {
    transform: scale(1.2);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Download Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.modal-body .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        margin: 1rem;
        padding: 10px;
    }

    .profile-details, .profile-header {
        padding: 1.5rem;
    }

    .update-btn, .change-password-btn, .logout-btn {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
    }
}


/* Profile Icon */
.profile-icon {
    font-size: 1.5rem;
    margin-left: auto;
}

.profile-icon a {
    color: white;
    text-decoration: none;
}

.profile-icon a:hover {
    opacity: 0.9;
}
