/* ================================
   Premium Theme Styles
=================================== */
:root {
    --primary-color: #4187F8;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #dfe6e9;
    --success-color: #00b894;
    --info-color: #2c6cd4;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
}

.bg-gradient-success {
    background: linear-gradient(45deg, #00b894, #55efc4);
}

.bg-gradient-primary {
    background: linear-gradient(45deg, #4187F8, #a29bfe);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #fdcb6e, #ffeaa7);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #2c6cd4, #74b9ff);
}

.bg-gradient-accent {
    background: linear-gradient(45deg, #fd79a8, #fab1a0);
}

.bg-gradient-danger {
    background: linear-gradient(45deg, #d63031, #ff7675);
}


.premium-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-family: 'Poppins', sans-serif;
    color: var(--light-color);
    min-height: 100vh;
}

/* Full background image with dark overlay */
.premium-theme::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/app/img/pc-bg.png') center center / cover no-repeat;
    opacity: 0.04;
    z-index: 0;
}

/* ================================
    App Slider
=================================== */
/* Carousel Styles */
#appSlider {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: white;
    width: 30px;
    border-radius: 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    background-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4187F8 0%, #a29bfe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #111;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 0 0 8px #333,
        0 20px 50px rgba(0, 0, 0, 0.3);
}

.phone-mockup .screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
}

/* Button Styles */
.btn-light {
    background-color: white;
    color: #4187F8;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #appSlider .display-6 {
        font-size: 1.8rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        margin-top: 20px;
    }
}

/* ================================
   Ad Banners
=================================== */
.top-ad-banner, .bottom-ad-banner {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-ad-banner {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

/* ================================
   Realistic Phone Frame (Updated)
=================================== */
.phone-frame {
    width: 400px;
    /* Frame width matches iPhone 12/13 mini */
    height: 780px;
    /* Total frame height including bezels */
    background: #111;
    border-radius: 50px;
    box-shadow: 0 0 0 12px #1a1a1a,
        0 0 0 14px #333,
        0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 40px auto;
    padding: 0.8em;
    overflow: hidden;
    z-index: 10;
}

/* Screen notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 30px;
    background: #1a1a1a;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 11;
}

/* Home indicator */
.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: #333;
    border-radius: 5px;
    z-index: 11;
}

/* Phone screen area */
.phone-content {
    position: absolute;
    top: 15px;
    /* Matches bezel thickness */
    left: 15px;
    /* Matches bezel thickness */
    right: 15px;
    /* Matches bezel thickness */
    bottom: 15px;
    /* Matches bezel thickness */
    background: #f9f9f9;
    border-radius: 35px;
    /* Slightly smaller than frame radius */
    overflow: hidden;
    z-index: 10;
}

/* Iframe styling */
.phone-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
}

/* Optional: Add iOS-style status bar */
.iframe-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 12;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #000;
    margin-bottom: 1em;
}

.nht-content {
    padding: 10px;
    margin-top: 1em;
    max-width: 400px;
}

.header-logo img {
    height: auto;
    align-items: center;
    text-align: center;
    align-self: center;
}

.btn-primary-custom {
    background-color: #4187F8;
    border: none;
}

.btn-primary-custom:hover {
    background-color: #2c6cd4;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider:not(:empty)::before {
    margin-right: .75em;
}

.divider:not(:empty)::after {
    margin-left: .75em;
}

.social-btn {
    background: #f1f1f1;
    color: #000;
}

.social-btn:hover {
    background: #e2e2e2;
}

.loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-top: 3px solid #4187F8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   Premium Glass Cards
=================================== */
.card.glass, .glass, .promo-box, .ad-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--light-color);
    overflow: hidden;
}

.card.glass .card-header, .promo-box .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================
   Premium Buttons
=================================== */
.btn {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #5649d6;
    border-color: #5649d6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background: #00a884;
    border-color: #00a884;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

/* ================================
   Floating Action Buttons
=================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn.primary {
    background: var(--primary-color);
}

.floating-btn.accent {
    background: var(--accent-color);
}

/* ================================
   Crypto Widget
=================================== */
.crypto-widget {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.crypto-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-item:last-child {
    border-bottom: none;
}

.crypto-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.crypto-name {
    font-weight: 500;
    flex-grow: 1;
}

.crypto-price {
    font-weight: 600;
}

.crypto-change.positive {
    color: var(--success-color);
}

.crypto-change.negative {
    color: var(--danger-color);
}

/* ================================
   Responsive Adjustments
=================================== */
@media (max-width: 1199.98px) {
    .desktop-extras {
        display: none;
    }

    .main-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .phone-frame {
        width: 92%;
        height: 650px;
        border-radius: 30px;
    }

    .phone-content {
        border-radius: 25px;
    }
}

/* App Bar Styles */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #4187F8;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.app-bar-title {
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
}

.app-bar-user {
    display: flex;
    align-items: center;
}

.app-bar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: #4187F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-bar i {
    font-size: 20px;
    cursor: pointer;
}

/* Side Navigation */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    /* Stay at left */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    z-index: 1100;
    /* transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); */
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.side-nav.active {
    /* transform: translateX(320px); */
    transform: translateX(0);
    /* Brings it into view */
}

.side-nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.side-nav-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.side-nav-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.side-nav-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4187F8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.side-nav-user-info {
    overflow: hidden;
}

.side-nav-user {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav-email {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav-menu {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.side-nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.side-nav-item i:first-child {
    width: 24px;
    text-align: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.side-nav-item span {
    flex: 1;
}

.side-nav-item i:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.side-nav-item:hover, .side-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.side-nav-item.active {
    border-left: 4px solid #4187F8;
}

.side-nav-item.logout {
    color: #e74c3c;
}

.side-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 25px;
}

.side-nav-footer {
    padding: 15px 25px;
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overlay */
.side-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.side-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Notification bell + count badge */
.notification-wrapper {
    position: relative;
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    z-index: 10;
}

/* Dropdown container */
.notification-dropdown {
    display: none;
    position: absolute;
    right: -50px;
    top: 30px;
    background: white;
    width: 320px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 999;
    overflow: hidden;
}

/* Show dropdown */
.notification-dropdown.active {
    display: block;
}

/* Header row */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-weight: bold;
    background-color: #f5f5f5;
    color: var(--info-color);
    border-bottom: 1px solid #eee;
}

.notification-header a {
    font-size: 13px;
    color: #007bff;
    text-decoration: none;
}

/* Notification list area */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-list .loading {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

/* Notification item */
.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notification-item:hover {
    background: #f9f9f9;
}

/* Unread styling */
.notification-item.unread {
    background-color: #eef5ff;
    font-weight: 600;
}

.notification-item .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.notification-item .body {
    font-size: 13px;
    color: #555;
}

/* Full page styles */
.notification {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.notification.unread {
    background-color: #f4f8ff;
    font-weight: 500;
}

.notification small {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

.notification-item .date {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.notification-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Custom scrollbar inside notifications list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}