/**
 * IQA Global Component Styles
 * Shared styles for UI components defined in core/UI.php
 */

/* Stat Cards */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .stat-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }
}

.stat-header {
    margin-bottom: 8px;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
}

/* Opportunity Cards */
.opportunity-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .opportunity-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.15);
    }
}

.opp-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
}

.opp-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.opp-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Quick Action Buttons */
.action-hub-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

@media (hover: hover) {
    .action-hub-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(5px);
    }
}

/* Global Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-lead { background: rgba(0, 168, 255, 0.1); color: #00a8ff; border: 1px solid rgba(0, 168, 255, 0.2); }
.badge-active-customer { background: rgba(140, 198, 63, 0.1); color: #8cc63f; border: 1px solid rgba(140, 198, 63, 0.2); }
.badge-ready { background: rgba(140, 198, 63, 0.1); color: #8cc63f; border: 1px solid rgba(140, 198, 63, 0.2); }
.badge-need-photo { background: rgba(255, 171, 0, 0.1); color: #ffab00; border: 1px solid rgba(255, 171, 0, 0.2); }
.badge-need-template { background: rgba(255, 86, 48, 0.1); color: #ff5630; border: 1px solid rgba(255, 86, 48, 0.2); }

/* Activity Feed */
.activity-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.activity-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.activity-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.activity-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Spec Tables */
.spec-table-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.spec-header-row {
    display: grid;
    gap: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-green);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.spec-data-row {
    display: grid;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.toast.hiding {
    animation: toastSlideOut 0.4s ease-in forwards;
}

.toast-icon { font-size: 1.2rem; }
.toast-success { border-left: 4px solid var(--accent-green); }
.toast-error { border-left: 4px solid #ff5630; }
.toast-warning { border-left: 4px solid #ffab00; }
.toast-info { border-left: 4px solid var(--accent-blue); }

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

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(20px) scale(0.8); }
}

@media (max-width: 768px) {
    #toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
        align-items: center;
    }
    .toast { width: 100%; min-width: 0; }
}
