/* Dashboard Styles - Clean Version */

.dashboard-container {
    min-height: 100vh;
    background-color: #f9fafb;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
}

.profile-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-card-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.profile-avatar {
    position: relative;
}

.avatar-circle {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e5e7eb;
}

.avatar-initial {
    width: 100%;
    height: 100%;
    background-color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.rank-badge {
    position: absolute;
    bottom: -0.25rem;
    left: -0.25rem;
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
}

.user-email {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-icon {
    width: 1rem;
    height: 1rem;
}

.stat-value {
    font-weight: 500;
}

.edit-button {
    background-color: #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.edit-button:hover {
    background-color: #d1d5db;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #059669;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card-icon-bg {
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.stat-card-icon-bg.yellow {
    background-color: #fef3c7;
}

.stat-card-icon-bg.orange {
    background-color: #fed7aa;
}

.stat-card-icon-bg.purple {
    background-color: #e9d5ff;
}

.stat-card-icon-bg.blue {
    background-color: #dbeafe;
}

.stat-card-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

.stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
}

.stat-card-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.stat-card-change {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 500;
}

.content-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.content-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: #6b7280;
}

.tip-card {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tip-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.tip-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

.tip-text h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.tip-text p {
    font-size: 0.875rem;
    color: #1d4ed8;
}

.form-section {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 6rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-button {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-card-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: center;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background-color: #059669;
}

.message.error {
    background-color: #dc2626;
}

.message.warning {
    background-color: #d97706;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-close {
    margin-left: 1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .dashboard-container {
        background: white;
    }
    
    .profile-card,
    .stat-card,
    .content-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .edit-button,
    .submit-button {
        display: none;
    }
}
