/**
 * User Dashboard CSS for Billing Plugin
 * File: assets/css/user-dashboard.css
 */

/* =============================================================================
   BASE DASHBOARD STYLES (from main plugin but self-contained)
   ============================================================================= */

.avt-dashboard-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* =============================================================================
   DASHBOARD HEADER WITH ACCOUNT DROPDOWN
   ============================================================================= */

.avt-dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.avt-dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.avt-dashboard-header-left {
    flex: 1;
}

.avt-dashboard-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.avt-dashboard-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.avt-dashboard-header-right {
    display: flex;
    align-items: center;
}

/* Account Section Styles */
.avt-account-section {
    position: relative;
}

.avt-account-dropdown {
    position: relative;
}

.avt-account-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
}

.avt-account-button:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avt-account-button:active {
    transform: translateY(0);
}

.avt-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avt-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avt-account-text {
    flex: 1;
    text-align: left;
}

.avt-account-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.avt-account-button.open .avt-account-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.avt-account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.avt-account-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avt-account-dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.avt-account-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avt-account-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avt-account-user-details {
    flex: 1;
}

.avt-account-user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.avt-account-user-email {
    font-size: 12px;
    opacity: 0.9;
}

.avt-account-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}

.avt-account-dropdown-items {
    padding: 8px;
}

.avt-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.avt-account-dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.avt-account-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.avt-account-dropdown-item:hover svg {
    opacity: 1;
}

.avt-account-dropdown-item.avt-logout {
    color: #dc2626;
}

.avt-account-dropdown-item.avt-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* =============================================================================
   MESSAGES
   ============================================================================= */

.avt-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.avt-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.avt-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.avt-message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.avt-message-close:hover {
    opacity: 1;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.avt-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.avt-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.avt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.avt-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.avt-card-body {
    padding: 0;
}

/* Dashboard Layout */
.avt-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.avt-col-2 {
    margin-bottom: 0;
}

/* =============================================================================
   PLAN BADGES & STATUS
   ============================================================================= */

.avt-plan-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avt-plan-badge.avt-plan-free {
    background: #f3f4f6;
    color: #6b7280;
}

.avt-plan-badge.avt-plan-individual {
    background: #dbeafe;
    color: #1d4ed8;
}

.avt-plan-badge.avt-plan-company {
    background: #d1fae5;
    color: #065f46;
}

.avt-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avt-status-badge.avt-status-active {
    background: #dcfce7;
    color: #166534;
}

/* =============================================================================
   USAGE BARS & PROGRESS
   ============================================================================= */

.avt-usage-item {
    margin-bottom: 32px;
}

.avt-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.avt-usage-label {
    font-weight: 600;
    color: #374151;
}

.avt-usage-count {
    font-weight: 600;
    color: #4f46e5;
}

.avt-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.avt-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
}

.avt-usage-warning {
    color: #f59e0b;
    font-size: 0.875rem;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* =============================================================================
   PLATFORMS LIST
   ============================================================================= */

.avt-platforms-list {
    display: grid;
    gap: 8px;
}

.avt-platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.avt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.avt-btn-primary {
    background: #10b981;
    color: white;
}

.avt-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.avt-btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.avt-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #1e293b;
    text-decoration: none;
}

.avt-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.avt-btn-danger:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #dc2626;
    text-decoration: none;
}

/* =============================================================================
   ACTION ITEMS
   ============================================================================= */

.avt-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.avt-action-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #1e293b;
    text-decoration: none;
}

.avt-action-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.avt-action-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.avt-action-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

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

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .avt-dashboard-header {
        padding: 16px;
    }
    
    .avt-dashboard-header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .avt-dashboard-title h1 {
        font-size: 20px;
    }
    
    .avt-dashboard-title p {
        font-size: 13px;
    }
    
    .avt-account-dropdown-menu {
        width: 260px;
        right: -16px;
    }
    
    .avt-dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .avt-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .avt-action-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .avt-action-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .avt-account-button {
        min-width: 120px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .avt-account-text {
        font-size: 13px;
    }
    
    .avt-account-avatar {
        width: 28px;
        height: 28px;
    }
    
    .avt-account-dropdown-menu {
        width: calc(100vw - 32px);
        right: -16px;
    }
    
    .avt-card-body {
        padding: 16px;
    }
    
    .avt-btn {
        width: 100%;
    }
    
    .avt-dashboard-app {
        padding: 10px;
    }
}

/**
 * User Dashboard CSS for Billing Plugin
 * File: assets/css/user-dashboard.css
 */

/* =============================================================================
   BASE DASHBOARD STYLES (from main plugin but self-contained)
   ============================================================================= */

.avt-dashboard-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* =============================================================================
   DASHBOARD HEADER WITH ACCOUNT DROPDOWN
   ============================================================================= */

.avt-dashboard-header {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.avt-dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.avt-dashboard-header-left {
    flex: 1;
}

.avt-dashboard-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.avt-dashboard-title p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.avt-dashboard-header-right {
    display: flex;
    align-items: center;
}

/* Account Section Styles */
.avt-account-section {
    position: relative;
}

.avt-account-dropdown {
    position: relative;
}

.avt-account-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 140px;
}

.avt-account-button:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avt-account-button:active {
    transform: translateY(0);
}

.avt-account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.avt-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avt-account-text {
    flex: 1;
    text-align: left;
}

.avt-account-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.avt-account-button.open .avt-account-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles */
.avt-account-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.avt-account-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.avt-account-dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.avt-account-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avt-account-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.avt-account-user-details {
    flex: 1;
}

.avt-account-user-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.avt-account-user-email {
    font-size: 12px;
    opacity: 0.9;
}

.avt-account-dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}

.avt-account-dropdown-items {
    padding: 8px;
}

.avt-account-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.avt-account-dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.avt-account-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.avt-account-dropdown-item:hover svg {
    opacity: 1;
}

.avt-account-dropdown-item.avt-logout {
    color: #dc2626;
}

.avt-account-dropdown-item.avt-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* =============================================================================
   MESSAGES
   ============================================================================= */

.avt-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.avt-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.avt-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.avt-message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.avt-message-close:hover {
    opacity: 1;
}

/* =============================================================================
   CARDS
   ============================================================================= */

.avt-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.avt-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.avt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.avt-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.avt-card-body {
    padding: 0;
}

/* Dashboard Layout */
.avt-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.avt-col-2 {
    margin-bottom: 0;
}

/* =============================================================================
   PLAN BADGES & STATUS
   ============================================================================= */

.avt-plan-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avt-plan-badge.avt-plan-trial {
    background: #fef3c7;
    color: #92400e;
}

.avt-plan-badge.trial-active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
    animation: pulse-trial 2s infinite;
}

@keyframes pulse-trial {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.avt-message.avt-trial-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
    font-weight: 600;
}

.avt-plan-badge.avt-plan-individual {
    background: #dbeafe;
    color: #1d4ed8;
}

.avt-plan-badge.avt-plan-company {
    background: #d1fae5;
    color: #065f46;
}

.avt-plan-badge.avt-plan-enterprise {
    background: #e5e7eb;
    color: #374151;
}

.avt-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.avt-status-badge.avt-status-active {
    background: #dcfce7;
    color: #166534;
}

/* =============================================================================
   USAGE BARS & PROGRESS
   ============================================================================= */

.avt-usage-item {
    margin-bottom: 32px;
}

.avt-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.avt-usage-label {
    font-weight: 600;
    color: #374151;
}

.avt-usage-count {
    font-weight: 600;
    color: #4f46e5;
}

.avt-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.avt-progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    transition: width 0.3s ease;
}

.avt-usage-warning {
    color: #f59e0b;
    font-size: 0.875rem;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* =============================================================================
   PLATFORMS LIST
   ============================================================================= */

.avt-platforms-list {
    display: grid;
    gap: 8px;
}

.avt-platform-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.avt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.avt-btn-primary {
    background: #10b981;
    color: white;
}

.avt-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    color: white;
    text-decoration: none;
}

.avt-btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.avt-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #1e293b;
    text-decoration: none;
}

.avt-btn-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.avt-btn-danger:hover {
    background: #fecaca;
    border-color: #f87171;
    color: #dc2626;
    text-decoration: none;
}

/* =============================================================================
   ACTION ITEMS
   ============================================================================= */

.avt-action-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.avt-action-item:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #1e293b;
    text-decoration: none;
}

.avt-action-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.avt-action-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.avt-action-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

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

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

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
    .avt-dashboard-header {
        padding: 16px;
    }
    
    .avt-dashboard-header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .avt-dashboard-title h1 {
        font-size: 20px;
    }
    
    .avt-dashboard-title p {
        font-size: 13px;
    }
    
    .avt-account-dropdown-menu {
        width: 260px;
        right: -16px;
    }
    
    .avt-dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .avt-card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .avt-action-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .avt-action-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .avt-account-button {
        min-width: 120px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .avt-account-text {
        font-size: 13px;
    }
    
    .avt-account-avatar {
        width: 28px;
        height: 28px;
    }
    
    .avt-account-dropdown-menu {
        width: calc(100vw - 32px);
        right: -16px;
    }
    
    .avt-card-body {
        padding: 16px;
    }
    
    .avt-btn {
        width: 100%;
    }
    
    .avt-dashboard-app {
        padding: 10px;
    }
}

/* AI Platforms Section Styles */
.avt-platforms-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.avt-platform-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
}

.avt-platform-status {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.avt-platform-active .avt-platform-status {
    background: #ecfdf5;
}

.avt-platform-coming-soon .avt-platform-status {
    background: #fef3c7;
}

.avt-platform-name {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.avt-platform-coming-soon .avt-platform-name {
    color: #6b7280;
}

.avt-coming-soon-badge {
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Enhanced progress bars for better visual hierarchy */
.avt-progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.avt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

/* Special styling for domain progress */
.avt-usage-item:nth-child(2) .avt-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Warning state for progress bars */
.avt-usage-item:has(.avt-usage-warning) .avt-progress-fill {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.avt-usage-warning {
    font-size: 12px;
    color: #d97706;
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.avt-usage-warning::before {
    content: "⚠️";
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .avt-platform-item {
        padding: 10px 0;
    }
    
    .avt-coming-soon-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
    
    .avt-platforms-section h4 {
        font-size: 13px;
    }
}