* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-section {
    display: flex;
    align-items: center;
}

.auth-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.auth-info span {
    margin-right: 10px;
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.modal-footer a {
    color: #3498db;
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

h1 {
    color: #2c3e50;
    font-size: 28px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 5px;
}

.btn-edit:hover {
    background-color: #e67e22;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 32px;
    color: #3498db;
    margin-bottom: 5px;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-items: center;
}

.filters select,
.filters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.filters input {
    flex: 1;
}

.contacts-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 200px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-prospect {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-lead {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-customer {
    background-color: #e8f5e8;
    color: #388e3c;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* Message Styles */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #27ae60;
}

.message.error {
    background-color: #e74c3c;
}

.message.warning {
    background-color: #f39c12;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .contacts-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .message-container {
        left: 10px;
        right: 10px;
    }
    
    .message {
        min-width: auto;
    }
}/
* Password Reset Styles */
.modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.modal-footer a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

.modal-footer a:hover {
    text-decoration: underline;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.password-strength.weak {
    color: #e74c3c;
}

.password-strength.medium {
    color: #f39c12;
}

.password-strength.strong {
    color: #27ae60;
}/* 
Welcome Message Styles */
.welcome-message {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 40px;
    text-align: center;
    display: none;
}

.welcome-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.welcome-content p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.welcome-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
    min-width: 150px;
}

/* Hide Add Contact button when not authenticated */
body:not(.authenticated) #addContactBtn {
    display: none;
}

/* Show authenticated state */
body.authenticated .welcome-message {
    display: none !important;
}

/* Amplify Enhancements */
/* Additional styles for Amplify-enabled CRM */

/* Welcome Message Enhancements */
.welcome-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.welcome-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.welcome-actions {
    margin: 2rem 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.welcome-features {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-features h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.welcome-features ul {
    list-style: none;
    padding: 0;
}

.welcome-features li {
    padding: 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Authentication Modal Enhancements */
.auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Loading States */
.loading-auth {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Enhancements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    outline: none;
}

/* Success/Error Message Enhancements */
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-content h2 {
        font-size: 2rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    .btn-large {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .welcome-features {
        text-align: center;
    }
}

/* Authentication Status Indicator */
.auth-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-status.authenticated {
    background-color: #d4edda;
    color: #155724;
}

.auth-status.unauthenticated {
    background-color: #f8d7da;
    color: #721c24;
}

.auth-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.auth-status.authenticated::before {
    background-color: #28a745;
}

.auth-status.unauthenticated::before {
    background-color: #dc3545;
}

/* Cognito Branding */
.cognito-powered {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.cognito-powered::before {
    content: '🔒 ';
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ee82e9 0%, #f3455a 100%);
    transform: translateY(-1px);
}

/* Enhanced Authentication Styles */


/* Enhanced Authentication Styles */
/* Enhanced Authentication Styles for CRM Serverless */

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4757;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.strength-level {
    font-weight: 600;
}

.strength-requirements {
    font-size: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 0.2rem 0;
    color: #666;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #2ed573;
}

.requirement-icon {
    margin-right: 0.5rem;
    font-weight: bold;
    width: 12px;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Validation */
.field-valid {
    border-color: #2ed573 !important;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.2) !important;
}

.field-invalid {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}

.field-error {
    color: #ff4757;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.field-error::before {
    content: '⚠️';
    margin-right: 0.25rem;
}

/* User Profile Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.8;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.user-dropdown:hover .user-menu {
    display: block;
}

.user-menu-item {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
}

/* Profile Modal */
.profile-info {
    text-align: center;
    padding: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.profile-email {
    color: #666;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: #333;
}

.stat span {
    font-size: 0.8rem;
    color: #666;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin-bottom: 0.75rem;
    color: #333;
}

.settings-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Social Login */
.social-login {
    margin-top: 1.5rem;
}

.social-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.social-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.85rem;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

/* Enhanced Modal Animations */
.modal {
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Form Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Keyboard Shortcut Hints */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.keyboard-hint.show {
    opacity: 1;
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .user-dropdown {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .user-menu {
        background: #2c3e50;
        color: white;
    }
    
    .user-menu-item:hover {
        background-color: #34495e;
    }
    
    .social-divider span {
        background: #2c3e50;
        color: #bdc3c7;
    }
    
    .btn-social {
        background: #34495e;
        color: white;
        border-color: #4a5f7a;
    }
    
    .btn-social:hover {
        background: #4a5f7a;
    }
}

/* Accessibility Enhancements */
.btn:focus,
.user-menu-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.requirement[aria-label] {
    cursor: help;
}

/* Animation for requirement checks */
.requirement.met .requirement-icon {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Enhanced Authentication Styles */
/* Enhanced Authentication Styles for CRM Serverless */

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background-color: #ff4757;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.strength-level {
    font-weight: 600;
}

.strength-requirements {
    font-size: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 0.2rem 0;
    color: #666;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #2ed573;
}

.requirement-icon {
    margin-right: 0.5rem;
    font-weight: bold;
    width: 12px;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Validation */
.field-valid {
    border-color: #2ed573 !important;
    box-shadow: 0 0 0 2px rgba(46, 213, 115, 0.2) !important;
}

.field-invalid {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.2) !important;
}

.field-error {
    color: #ff4757;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
}

.field-error::before {
    content: '⚠️';
    margin-right: 0.25rem;
}

/* User Profile Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.8;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.user-dropdown:hover .user-menu {
    display: block;
}

.user-menu-item {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
}

/* Profile Modal */
.profile-info {
    text-align: center;
    padding: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.profile-email {
    color: #666;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: #333;
}

.stat span {
    font-size: 0.8rem;
    color: #666;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h4 {
    margin-bottom: 0.75rem;
    color: #333;
}

.settings-section label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Social Login */
.social-login {
    margin-top: 1.5rem;
}

.social-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.social-divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.85rem;
}

.social-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

/* Enhanced Modal Animations */
.modal {
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Enhanced Form Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Keyboard Shortcut Hints */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.keyboard-hint.show {
    opacity: 1;
}

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .user-dropdown {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-menu {
        position: static;
        display: block;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .user-menu {
        background: #2c3e50;
        color: white;
    }
    
    .user-menu-item:hover {
        background-color: #34495e;
    }
    
    .social-divider span {
        background: #2c3e50;
        color: #bdc3c7;
    }
    
    .btn-social {
        background: #34495e;
        color: white;
        border-color: #4a5f7a;
    }
    
    .btn-social:hover {
        background: #4a5f7a;
    }
}

/* Accessibility Enhancements */
.btn:focus,
.user-menu-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.requirement[aria-label] {
    cursor: help;
}

/* Animation for requirement checks */
.requirement.met .requirement-icon {
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Enhanced CRM Styles */
/* Enhanced CRM Interface Styles */

/* Advanced Filters */
.advanced-filters {
    margin-top: 1rem;
}

.advanced-filters-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-row select,
.filter-row input {
    flex: 1;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Bulk Operations */
.bulk-toolbar {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.selected-count {
    font-weight: 600;
    color: #1976d2;
}

/* Import/Export Actions */
.import-export-actions {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

/* Quick Actions Panel */
.quick-actions-panel {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.quick-actions h4 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.quick-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.quick-action-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-action-btn .icon {
    font-size: 1.5rem;
}

.quick-action-btn .label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

/* Recent Contacts Panel */
.recent-contacts-panel {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.recent-contacts h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.recent-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.recent-contact-item:hover {
    background: #f8f9fa;
}

.contact-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.contact-company {
    font-size: 0.75rem;
    color: #666;
}

/* Enhanced Stats */
.trend-indicator {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.trend-arrow {
    font-size: 0.8rem;
}

.trend-text {
    color: #28a745;
    font-weight: 500;
}

.detailed-stats-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Analytics Dashboard */
.analytics-dashboard {
    padding: 1rem 0;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
}

.analytics-card h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.chart-placeholder {
    height: 200px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

.top-companies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-item {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Search Enhancements */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Tags System */
.tags-input-container {
    position: relative;
}

.tags-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.contact-tags-display {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.contact-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-tag .remove-tag {
    cursor: pointer;
    font-weight: bold;
}

/* Keyboard Shortcuts */
.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.shortcut-item kbd {
    background: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 3px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: monospace;
    margin: 0 0.125rem;
}

/* Keyboard Help Button */
.keyboard-help-btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.keyboard-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Preferences Modal */
.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.preference-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.preference-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Large Modal */
.large-modal {
    max-width: 90vw;
    width: 1000px;
}

/* Compact View */
.compact-view .stat-card {
    padding: 1rem;
}

.compact-view .contact-item {
    padding: 0.5rem;
}

.compact-view .quick-actions-panel {
    padding: 1rem;
}

/* Dark Theme Support */
.dark-theme {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.dark-theme .analytics-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-theme .chart-placeholder {
    background: #1a1a1a;
    border-color: #404040;
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .bulk-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .bulk-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .quick-action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .large-modal {
        max-width: 95vw;
        width: auto;
    }
    
    .import-export-actions {
        flex-direction: column;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Animation Enhancements */
.quick-action-btn,
.recent-contact-item,
.analytics-card {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Table Enhancements */
.contacts-table {
    position: relative;
}

.contact-checkbox {
    margin-right: 0.5rem;
}

/* Enhanced Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner-large {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success/Error States */
.success-state {
    text-align: center;
    padding: 2rem;
    color: #28a745;
}

.error-state {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
}

/* Enhanced Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
}