/* ============================================================
   AirDirector Store - Stile Principale
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

/* NAVBAR */
.navbar { 
    box-shadow: var(--shadow); 
}
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* CARDS */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-img-top {
    height: 220px;
    object-fit: cover;
    background: #e2e8f0;
}
.card-body { padding: 1.25rem; }

/* SOFTWARE DETAIL */
.software-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}
.software-gallery img {
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
    transition: opacity 0.2s;
}
.software-gallery img:hover { opacity: 0.85; }

/* FEATURES LIST */
.features-list {
    list-style: none;
    padding: 0;
}
.features-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* PRICE */
.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}
.price-old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* BUTTONS */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}
.btn-accent:hover {
    background: #0891b2;
    color: white;
}

/* CART */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.cart-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}
.cart-summary {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* SERIAL KEY */
.serial-key {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    background: var(--secondary);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 2px;
}

/* STATUS BADGES */
.badge-purchased { background: var(--warning); color: #000; }
.badge-active { background: var(--success); }
.badge-revoked { background: var(--danger); }
.badge-pending { background: var(--warning); color: #000; }
.badge-confirmed { background: var(--success); }
.badge-rejected { background: var(--danger); }

/* ADMIN */
.admin-sidebar .nav-link.active {
    background: var(--primary) !important;
}
.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION DIVIDERS */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

/* BUNDLE CARD */
.bundle-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.bundle-card::before {
    content: 'BUNDLE';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 2px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-sidebar { width: 100% !important; min-height: auto !important; }
    .card-img-top { height: 160px; }
    .price { font-size: 1.5rem; }
}

/* ALERTS */
.alert { border-radius: var(--radius); }

/* TABLE ADMIN */
.table-admin th {
    background: var(--secondary);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}