@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --dark-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --apple-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --android-gradient: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    --surface-bg: #f8fafc;
    --card-border: rgba(226, 232, 240, 0.8);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--surface-bg);
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.15);
    color: #4f46e5;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    padding: 0.5rem 0.85rem !important;
}

.nav-link:hover {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.active {
    color: #ffffff !important;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Stat Cards */
.stat-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon-primary {
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
}

.stat-icon-android {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.stat-icon-apple {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

.stat-icon-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.stat-icon-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* Modern Card Layouts */
.content-card {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.content-card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Badges */
.badge-android {
    background-color: #16a34a;
    color: white;
    font-weight: 500;
}

.badge-ios {
    background-color: #0f172a;
    color: white;
    font-weight: 500;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Device Preview on Send Page */
.mobile-frame-mockup {
    width: 300px;
    margin: 0 auto;
    background: #000000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 4px solid #334155;
}

.mobile-screen-mockup {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 30px;
    min-height: 480px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: white;
}

.mobile-notch {
    width: 110px;
    height: 18px;
    background: #000000;
    border-radius: 20px;
    margin: 0 auto 15px auto;
}

.push-notification-banner {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideDown 0.3s ease-out;
}

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

.token-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Toast container */
.toast-container {
    z-index: 1090;
}