/* Modern DNN Webshop Styles - v1.0.2 */
:root {
    --primary-purple: #6366f1;
    --primary-blue: #3b82f6;
    --accent-blue: #0ea5e9;
    --bg-dark: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success-green: #10b981;
    --danger-red: #ef4444;
    --warning-yellow: #f59e0b;
    --input-bg: #1e293b;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    margin: 0;
}

.login-card .form-control {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.login-card .form-control:focus {
    background: var(--input-bg);
    border-color: var(--primary-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.login-card label {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    transition: transform 0.2s;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.login-card .alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN APP STYLES
   ═══════════════════════════════════════════════════════════════ */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
}

.navbar {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
}

.navbar-brand .logo-icon {
    font-size: 2rem;
    color: #fff;
}

.navbar-brand .logo-text {
    color: #fff;
}

.navbar-brand .logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
}

.search-container {
    max-width: 500px;
    width: 100%;
}

.search-bar {
    border-radius: 10px;
    overflow: hidden;
}

.search-bar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.search-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: none;
}

.btn-search {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

.btn-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

.user-info {
    color: #fff;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.badge-notification,
.badge-cart {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    gap: 0.75rem;
    font-weight: 500;
}

.sidebar-nav .nav-item i {
    font-size: 1.1rem;
    width: 20px;
}

.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-purple);
    border-left: 3px solid var(--primary-purple);
}

.sidebar-nav .badge {
    margin-left: auto;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.nav-section {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: var(--bg-dark);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-blue);
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    padding: 0.5rem 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.financial-item:last-child {
    border-bottom: none;
}

.amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.amount.negative {
    color: var(--danger-red);
}

.amount.positive {
    color: var(--success-green);
}

.table {
    color: var(--text-primary);
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.debug-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.debug-header button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.debug-content p {
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.debug-content a {
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
