/* ========================================
   PROFESSIONAL APP DESIGN - COMPLETE UI
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --primary-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(79, 70, 229, 0.15);
    --shadow-xl: 0 20px 50px rgba(79, 70, 229, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F3F4F6;
    color: #111827;
    padding-bottom: 80px;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   HEADER - GLASS MORPHISM
   ======================================== */
.app-header {
    background: var(--primary-gradient);
    padding: 16px 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.app-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.app-header .logo .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.app-header .header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin: 0 12px;
}

.app-header .header-info .greeting {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 400;
}

.app-header .header-info .user-name {
    font-weight: 600;
    font-size: 13px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header .header-info .role-badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

.app-header .header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-header .header-actions .icon-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s;
    position: relative;
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header .header-actions .icon-btn:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.25);
}

.app-header .header-actions .icon-btn .badge-dot {
    width: 10px;
    height: 10px;
    background: #EF4444;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
    border: 2px solid #4F46E5;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========================================
   BOTTOM NAV - MODERN WITH GLASS
   ======================================== */
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 448px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 6px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
    z-index: 200;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #9CA3AF;
    font-size: 9px;
    padding: 6px 12px;
    border-radius: 14px;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    min-width: 48px;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item .nav-icon {
    font-size: 22px;
    line-height: 1.2;
    transition: transform 0.3s;
}

.bottom-nav .nav-item .nav-label {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.bottom-nav .nav-item.active {
    color: #4F46E5;
    background: var(--primary-light);
}

.bottom-nav .nav-item.active .nav-icon {
    transform: translateY(-2px) scale(1.05);
}

.bottom-nav .nav-item:active:not(.active) {
    transform: scale(0.92);
    background: #F3F4F6;
}

.bottom-nav .nav-item .nav-badge {
    background: #EF4444;
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 12px;
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 16px;
    text-align: center;
    line-height: 14px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ========================================
   WELCOME SECTION
   ======================================== */
.welcome-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.welcome-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.welcome-section p {
    font-size: 12px;
    opacity: 0.85;
    margin: 4px 0 0;
    position: relative;
    z-index: 1;
}

.welcome-section .trial-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}

/* ========================================
   STAT CARDS - NEUMORPHIC
   ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.stat-card:active {
    transform: scale(0.96);
}

.stat-card .stat-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 4px;
}

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

.stat-card .stat-label {
    font-size: 9px;
    color: #9CA3AF;
    margin-top: 2px;
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 8px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.stat-card .stat-change.positive {
    color: #10B981;
    background: #D1FAE5;
}

.stat-card .stat-change.negative {
    color: #EF4444;
    background: #FEE2E2;
}

/* ========================================
   QUICK ACTIONS - MODERN GRID
   ======================================== */
.quick-actions {
    background: white;
    border-radius: var(--radius);
    padding: 18px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.quick-actions .quick-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-actions .quick-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #E5E7EB, transparent);
}

.quick-actions .action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #374151;
    border: 1px solid transparent;
}

.quick-actions .action-btn:hover {
    background: var(--primary-light);
    border-color: #4F46E5;
}

.quick-actions .action-btn:active {
    transform: scale(0.94);
}

.quick-actions .action-btn .action-icon {
    font-size: 28px;
    line-height: 1;
}

.quick-actions .action-btn .action-label {
    font-size: 9px;
    font-weight: 500;
    color: #6B7280;
}

/* ========================================
   CHART SECTION
   ======================================== */
.chart-section {
    background: white;
    border-radius: var(--radius);
    padding: 18px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.chart-section .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-section .chart-header .chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.chart-section .chart-header .chart-period {
    font-size: 10px;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 2px 12px;
    border-radius: 12px;
}

.chart-section .chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    gap: 6px;
}

.chart-section .chart-bars .bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.chart-section .chart-bars .bar-group .bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-section .chart-bars .bar-group .bar.sales {
    background: var(--primary-gradient);
}

.chart-section .chart-bars .bar-group .bar.collection {
    background: linear-gradient(135deg, #10B981, #059669);
}

.chart-section .chart-bars .bar-group .bar-label {
    font-size: 8px;
    color: #9CA3AF;
    font-weight: 500;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: #6B7280;
}

.chart-legend .legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

.chart-legend .legend-item .dot.sales {
    background: var(--primary-gradient);
}

.chart-legend .legend-item .dot.collection {
    background: linear-gradient(135deg, #10B981, #059669);
}

/* ========================================
   SECTION CARDS
   ======================================== */
.section-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.section-card .section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card .section-title .badge {
    font-size: 9px;
    font-weight: 500;
    background: #F3F4F6;
    padding: 1px 10px;
    border-radius: 12px;
    color: #6B7280;
}

/* ========================================
   LIST ITEMS - MODERN
   ======================================== */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.2s;
}

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

.list-item .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.list-item .left .rank {
    font-size: 11px;
    font-weight: 700;
    color: #D1D5DB;
    width: 20px;
    text-align: center;
}

.list-item .left .name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.list-item .left .sub {
    font-size: 10px;
    color: #9CA3AF;
}

.list-item .right {
    font-size: 13px;
    font-weight: 600;
    color: #4F46E5;
}

/* ========================================
   CUSTOMER CARDS
   ======================================== */
.customer-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.customer-card:active {
    transform: scale(0.97);
}

.customer-card .left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.customer-card .left .avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.customer-card .left .info {
    min-width: 0;
    flex: 1;
}

.customer-card .left .info .name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.customer-card .left .info .code {
    font-size: 10px;
    color: #9CA3AF;
}

.customer-card .left .info .phone {
    font-size: 10px;
    color: #9CA3AF;
}

.customer-card .right {
    text-align: right;
    flex-shrink: 0;
}

.customer-card .right .amount {
    font-size: 15px;
    font-weight: 700;
}

.customer-card .right .amount.due {
    color: #EF4444;
}

.customer-card .right .amount.settled {
    color: #10B981;
}

.customer-card .right .amount.advance {
    color: #F59E0B;
}

.customer-card .right .status-badge {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 2px;
}

.customer-card .right .status-badge.due {
    background: #FEE2E2;
    color: #DC2626;
}

.customer-card .right .status-badge.settled {
    background: #D1FAE5;
    color: #059669;
}

.customer-card .right .status-badge.advance {
    background: #FEF3C7;
    color: #D97706;
}

/* ========================================
   ORDER CARDS
   ======================================== */
.order-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}

.order-card:active {
    transform: scale(0.97);
}

.order-card .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.order-card .header .code {
    font-weight: 600;
    font-size: 13px;
    color: #111827;
}

.order-card .header .status {
    font-size: 8px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
}

.order-card .header .status.delivered {
    background: #D1FAE5;
    color: #059669;
}

.order-card .header .status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.order-card .header .status.partial {
    background: #EEF2FF;
    color: #4F46E5;
}

.order-card .header .status.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.order-card .details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .details .customer {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.order-card .details .items {
    font-size: 10px;
    color: #9CA3AF;
}

.order-card .details .date {
    font-size: 10px;
    color: #9CA3AF;
}

.order-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F3F4F6;
}

.order-card .footer .amount {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.order-card .footer .payment-status {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 12px;
}

.order-card .footer .payment-status.paid {
    background: #D1FAE5;
    color: #059669;
}

.order-card .footer .payment-status.unpaid {
    background: #FEE2E2;
    color: #DC2626;
}

.order-card .footer .payment-status.partial {
    background: #FEF3C7;
    color: #D97706;
}

/* ========================================
   DUE CARDS
   ======================================== */
.due-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.due-card .left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.due-card .left .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FEE2E2;
    color: #DC2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.due-card .left .info {
    min-width: 0;
    flex: 1;
}

.due-card .left .info .name {
    font-weight: 600;
    font-size: 13px;
    color: #111827;
}

.due-card .left .info .detail {
    font-size: 10px;
    color: #9CA3AF;
}

.due-card .left .info .overdue {
    font-size: 10px;
    color: #DC2626;
    font-weight: 500;
}

.due-card .right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.due-card .right .amount {
    font-size: 15px;
    font-weight: 700;
    color: #DC2626;
}

.due-card .right .remind-btn {
    padding: 6px 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.due-card .right .remind-btn:active {
    transform: scale(0.92);
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */
.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 30px;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:active {
    transform: scale(0.88);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-bar {
    background: white;
    border-radius: var(--radius);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.search-bar .search-icon {
    color: #9CA3AF;
    font-size: 18px;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    color: #111827;
    padding: 4px 0;
    min-height: 32px;
}

.search-bar input::placeholder {
    color: #9CA3AF;
}

/* ========================================
   FILTER TABS
   ======================================== */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tabs .filter-tab {
    padding: 6px 16px;
    border-radius: 20px;
    border: none;
    font-size: 11px;
    font-weight: 500;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    min-height: 32px;
}

.filter-tabs .filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.filter-tabs .filter-tab:active:not(.active) {
    transform: scale(0.94);
}

.filter-tabs .filter-tab .count {
    background: rgba(255,255,255,0.2);
    padding: 0 6px;
    border-radius: 10px;
    font-size: 9px;
    margin-left: 4px;
}

.filter-tabs .filter-tab.active .count {
    background: rgba(255,255,255,0.25);
}

/* ========================================
   FORM ELEMENTS - MODERN
   ======================================== */
.form-container {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-group label .required {
    color: #EF4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    background: #F9FAFB;
    color: #111827;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4F46E5;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.form-group textarea {
    min-height: 60px;
    resize: vertical;
}

/* ========================================
   BUTTONS - MODERN
   ======================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    color: #4F46E5;
    border: 2px solid #4F46E5;
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-block {
    width: 100%;
    display: flex;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 36px;
}

/* ========================================
   BADGES & STATUS
   ======================================== */
.badge {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #D1FAE5;
    color: #059669;
}

.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.badge-info {
    background: #EEF2FF;
    color: #4F46E5;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.5);
}

.empty-state .icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 16px;
}

.empty-state p {
    color: #9CA3AF;
    font-size: 13px;
    margin: 0 0 16px;
}

/* ========================================
   MESSAGES
   ======================================== */
.error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 4px solid #DC2626;
}

.success-message {
    background: #D1FAE5;
    color: #059669;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 4px solid #059669;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bottom-nav .nav-item {
        padding: 4px 8px;
        min-width: 40px;
        min-height: 40px;
    }
}

@media (min-width: 481px) {
    body {
        max-width: 480px;
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
        border-left: 1px solid #E5E7EB;
        border-right: 1px solid #E5E7EB;
    }
    .bottom-nav {
        max-width: 448px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.4s ease forwards;
}

/* ========================================
   PRINT
   ======================================== */
@media print {
    .app-header, .bottom-nav, .fab, .no-print {
        display: none !important;
    }
    body {
        padding: 0;
        max-width: 100%;
        background: white;
    }
}