/* Load IRANSans font from local assets */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb.woff2') format('woff2'),
       url('../fonts/IRANSansWeb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Bold.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Light.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSansWeb_UltraLight.woff2') format('woff2'),
       url('../fonts/IRANSansWeb_UltraLight.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}




     














:root {
    --ny-primary: #1a365d; /* Deep Blue */
    --ny-secondary: #2c5282; /* Lighter Deep Blue */
    --ny-accent: #3182ce; /* Azure */
    --ny-bg: #f8f9fa; /* Very Light Gray */
    --ny-text: #2d3748;
    --ny-border-radius: 12px;
}

html {
    overflow-x: hidden;
}

/* Keep layouts horizontally safe on mobile */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

/* Avatar images rendered via <picture> must keep square sizing */
.avatar-square {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.avatar-square picture {
    display: block;
    width: 100%;
    height: 100%;
}
.avatar-square img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body {
    font-family: 'IRANSans', system-ui, -apple-system, sans-serif !important;
    background-color: var(--ny-bg);
    color: var(--ny-text);
    overflow-x: hidden;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-height: 100vh;
    margin-right: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    background-color: var(--ny-primary) !important;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--ny-secondary) !important;
    color: white;
    text-align: center;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#sidebar-wrapper .list-group-item {
    background-color: var(--ny-primary);
    color: rgba(255, 255, 255, 0.8) !important;
    border: none;
    padding: 1rem 1.25rem;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: var(--ny-secondary);
    color: white !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--ny-accent);
    color: white !important;
    border-right: 4px solid #fff;
}

#page-content-wrapper {
    /* Avoid horizontal overflow on mobile: 100vw + padding => sideways scroll */
    width: 100%;
    min-width: 0;
}

#wrapper,
#page-content-wrapper,
.user-page-container {
    max-width: 100%;
}

#wrapper.toggled #sidebar-wrapper {
    margin-right: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-right: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-right: -15rem;
    }
}

/* Card Styling - Flat & Minimal */
.card {
    border: none;
    border-radius: var(--ny-border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: bold;
    border-radius: var(--ny-border-radius) var(--ny-border-radius) 0 0 !important;
    padding: 1rem;
}

/* AI Status Indicator */
.ai-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}
.ai-status-online { background-color: #28a745; box-shadow: 0 0 5px #28a745; }
.ai-status-processing { background-color: #ffc107; animation: pulse 1s infinite; }
.ai-status-offline { background-color: #dc3545; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Quality Gauge */
.quality-gauge-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: var(--ny-primary);
}

/* Omnichannel Tabs */
.nav-tabs .nav-link {
    color: var(--ny-text);
    border: none;
    border-bottom: 3px solid transparent;
}
.nav-tabs .nav-link.active {
    color: var(--ny-accent);
    border-bottom: 3px solid var(--ny-accent);
    font-weight: bold;
}

/* Social Media Preview Card */
.social-preview-card {
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
}
.social-header {
    padding: 10px;
    display: flex;
    align-items: center;
}
.social-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    margin-left: 10px;
}
.social-image {
    width: 100%;
    height: 250px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}
.social-actions {
    padding: 10px;
    font-size: 1.2rem;
}
.social-caption {
    padding: 0 10px 10px 10px;
    font-size: 0.9rem;
}
.hashtag {
    color: #00376b;
}

/* Custom Inputs */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--ny-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.big-square-check {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    min-width: 1.6rem;
    min-height: 1.6rem;
    margin: 0;
    padding: 0;
    border-radius: 0.35rem;
    border: 2px solid rgba(15, 23, 42, 0.22);
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.95rem 0.95rem;
    appearance: none !important;
    -webkit-appearance: none !important;
    float: none !important;
    vertical-align: middle;
    cursor: pointer;
}
.big-square-check:focus {
    border-color: var(--ny-accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}
.big-square-check:checked {
    background-color: var(--ny-primary);
    border-color: var(--ny-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M3.3 8.6 6.6 12l6.1-7'/%3e%3c/svg%3e");
}

.btn-primary {
    background-color: var(--ny-primary);
    border-color: var(--ny-primary);
}
.btn-primary:hover {
    background-color: var(--ny-secondary);
    border-color: var(--ny-secondary);
}

/* Mobile App Layout Transformation - Default (Mobile First) */
body {
    display: block;
    background-color: var(--ny-bg);
}

#wrapper {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: none;
    background-color: var(--ny-bg);
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

/* Desktop View - Limit to mobile width with centering */
@media (min-width: 769px) {
    body {
        background-color: #333 !important; /* Dark background outside the app frame */
    }
    
    html, body {
        overflow-x: hidden !important;
    }
    
    #wrapper,
    .login-wrapper {
        max-width: 480px !important;
        width: 100% !important;
        min-width: auto !important;
        margin: 0 auto !important;
        min-height: 100vh;
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
    
    #wrapper *,
    .login-wrapper * {
        max-width: 100% !important;
    }
    
    /* Fixed footer (copyright) - limit to mobile width */
    .fixed-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 480px !important;
        right: auto !important;
        max-width: none !important;
    }
    
    /* Limit Bottom Navigation to mobile width in desktop view */
    .bottom-nav {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 480px !important;
        max-width: none !important;
    }
    
    /* Limit Mobile Header to mobile width in desktop view */
    .mobile-header {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 480px !important;
        max-width: none !important;
    }
}

/* Slider/Carousel Text Styling */
.carousel-item .text-white {
    color: white !important;
}

.carousel-item h5,
.carousel-item p {
    margin-bottom: 1.2rem !important;
    line-height: 1.6 !important;
    font-weight: bold !important;
}

.carousel-item .p-4 {
    padding: 2rem !important;
}

/* Make all slider text white - stronger override */
.carousel-item .text-dark,
.carousel-item .text-muted,
.carousel-item * {
    color: white !important;
}

.carousel-item .small {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
}

/* Enhanced carousel text spacing and consistency */
#homeCarousel .carousel-item h5 {
    margin-bottom: 1.2rem !important;
    line-height: 1.4 !important;
}

#homeCarousel .carousel-item p {
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

/* Improved carousel spacing and text alignment */
#homeCarousel .carousel-item .p-4 {
    padding: 2rem 2rem !important;
}

#homeCarousel .carousel-item h5 {
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
    font-size: 1.3rem !important;
}

#homeCarousel .carousel-item p {
    margin-bottom: 2rem !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

/* Better spacing between carousel elements */
#homeCarousel .carousel-item .text-white * {
    color: white !important;
    text-shadow: none !important;
}

/* Ensure consistent button styling in carousels */
#homeCarousel .carousel-item .btn {
    margin-top: 1rem !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease !important;
}

#homeCarousel .carousel-item .btn:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* Additional spacing improvements for better visual hierarchy */
.carousel-item .text-white h5,
.carousel-item .text-white p {
    margin-bottom: 1rem !important;
}

/* Ensure proper vertical rhythm in carousel items */
#homeCarousel .carousel-inner .carousel-item {
    min-height: 180px !important;
}

/* Ensure all carousel text is white */
#homeCarousel .carousel-inner .carousel-item .text-dark,
#homeCarousel .carousel-inner .carousel-item .text-muted {
    color: white !important;
}

/* Improve button consistency in carousel */
#homeCarousel .carousel-item .btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Specific fix for btn-light text-primary buttons */
#homeCarousel .carousel-item .btn-light.text-primary {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

#homeCarousel .carousel-item .btn-light.text-primary:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* Additional carousel text spacing */
.carousel-item .carousel-caption,
.carousel-item .text-center {
    padding: 1rem 0 !important;
}

/* Ensure all text elements in carousel are white with stronger specificity */
#homeCarousel .carousel-item * {
    color: white !important;
}

/* Carousel specific styling for better readability */
#homeCarousel .carousel-item {
    min-height: 180px !important;
}

#homeCarousel .carousel-item .p-4 {
    padding: 2rem 2rem !important;
}

#homeCarousel h5 {
    font-size: 1.3rem !important;
    margin-bottom: 1.5rem !important;
}

#homeCarousel p {
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
}

/* Add extra spacing between text elements in carousel */
#homeCarousel .carousel-item h5 + p,
#homeCarousel .carousel-item p + small {
    margin-top: 1.2rem !important;
}

/* Ensure consistent vertical spacing in all carousel items */
#homeCarousel .carousel-item .text-center > *:not(:last-child) {
    margin-bottom: 1.2rem !important;
}

/* Specific fix for carousel item text elements to ensure proper spacing and white color */
#homeCarousel .carousel-item .p-4 h5,
#homeCarousel .carousel-item .p-4 p,
#homeCarousel .carousel-item .p-4 small {
    margin-bottom: 1rem !important;
}

/* Ensure all text in carousel items is white (override any conflicting styles) */
#homeCarousel .carousel-item .text-white * {
    color: white !important;
    text-shadow: none !important;
}

/* Add more space between title and paragraph in carousel */
#homeCarousel .carousel-item h5 {
    margin-bottom: 1.5rem !important;
}

/* Ensure all buttons in carousel have consistent styling */
#homeCarousel .carousel-item .btn {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(5px) !important;
}

/* Override specific button classes to maintain consistency */
#homeCarousel .carousel-item .btn-light {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

#homeCarousel .carousel-item .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Ensure buttons maintain transparency for better contrast */
#homeCarousel .carousel-item .btn:not(.btn-light):not(.btn-white) {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* iOS Input Zoom Prevention */
input, select, textarea {
    font-size: 16px !important;
}

/* Hide Sidebar */
#sidebar-wrapper {
    display: none !important;
}

#page-content-wrapper {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
}

/* Hide default Navbar if present */
#page-content-wrapper > nav {
    display: none !important;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: calc(60px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    background-color: var(--ny-primary);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-header .header-title {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Bottom Navigation - Modern Minimalist */
.bottom-nav {
   
    position: fixed;
    bottom: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    padding: 8px 0 8px env(safe-area-inset-bottom);
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(10px);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.75rem;
    flex: 1;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    gap: 0px;
}

.bottom-nav-item i {
    margin-top: 2px;
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item span {
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active {
    color: var(--ny-primary);
}

.bottom-nav-item.active i {
    color: var(--ny-primary);
    transform: translateY(-2px);
}

.bottom-nav-item.active span {
    font-weight: 700;
    opacity: 1;
}

/* Enhanced Visuals */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--ny-primary) 0%, var(--ny-secondary) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Dashboard Tiles */
.dashboard-tile {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--ny-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    border: 1px solid rgba(0,0,0,0.02);
}

.dashboard-tile:active {
    transform: scale(0.95);
}

.dashboard-tile i {
    font-size: 2.2rem;
    color: var(--ny-accent);
    margin-bottom: 0.8rem;
    background: rgba(49, 130, 206, 0.1);
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dashboard-tile span {
    font-weight: 700;
    font-size: 0.9rem;
}

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

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Enhanced Bottom Nav Active State */
.bottom-nav-item.active i {
    color: var(--ny-primary);
    transform: translateY(-2px);
}


.bottom-nav-item.active span {
    color: var(--ny-primary);
    font-weight: bold;
    opacity: 1;
}

/* Header Redesign */
.mobile-header {
    background: white;
    color: var(--ny-text);
    box-shadow: none;
}

.content-top-spacing-60 {
    padding-top: 60px !important;
}

/* Quick Access Cards Redesign */
.quick-access-card {
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    background: white;
    text-decoration: none !important;
    color: #212529;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
    overflow: hidden;
    border: none;
}

/* Table scrolling fix for small screens */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
    -moz-transform: translateY(-4px);
    -ms-transform: translateY(-4px);
    -o-transform: translateY(-4px);
}

.quick-access-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #06b6d4; /* Cyan light */
    transition: height 0.3s ease;
}

.quick-access-card:hover::after {
    height: 3px;
}

.quick-access-card i {
    transition: color 0.3s ease;
    color: var(--ny-primary);
    margin-bottom: 0.25rem;
}

.quick-access-card:hover i {
    color: #06b6d4 !important;
}

.quick-access-card span {
    font-size: 0.7rem;
    font-weight: bold;
}

/* User Design System */
.user-page {
    color: var(--ny-text);
}

.user-page-container {
    padding: 1rem 1rem 5rem !important;
}

.user-page-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1.5rem;
}

.user-back-button {
    color: var(--ny-text);
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.user-page-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-page-subtitle {
    color: #64748b;
    font-size: 0.82rem;
    margin-bottom: 0;
}

.section-title span {
    font-weight: 700;
    margin-bottom: 0;
    border-right: 4px solid var(--ny-primary);
    padding-right: 0.5rem;
    display: inline-block;
}

.page-hero,
.news-sources-hero,
.monitoring-hero,
.news-story-generator-hero {
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.page-hero *,
.news-sources-hero *,
.monitoring-hero *,
.news-story-generator-hero * {
    color: inherit;
}

.user-section-title {
    font-weight: 700;
    margin-bottom: 0;
    border-right: 4px solid var(--ny-primary);
    padding-right: 0.5rem;
}

/* ===== Modern Stat Cards ===== */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

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

.stat-card__bg {
    position: absolute;
    top: -30%;
    left: -20%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}

.stat-card--primary .stat-card__bg { background: #3b82f6; }
.stat-card--success .stat-card__bg { background: #10b981; }
.stat-card--warning .stat-card__bg { background: #f59e0b; }
.stat-card--info .stat-card__bg { background: #06b6d4; }

.stat-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.2rem;
}

.stat-icon--primary { background: rgba(59, 130, 246, 0.12); color: #3b82f6 !important; }
.stat-icon--success { background: rgba(16, 185, 129, 0.12); color: #10b981 !important; }
.stat-icon--warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b !important; }
.stat-icon--info { background: rgba(6, 182, 212, 0.12); color: #06b6d4 !important; }

/* ===== Modern Quick-Access Tiles ===== */
.modern-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    color: var(--ny-text);
    background: white;
    border-radius: 16px;
    padding: 0.75rem 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    height: 105px;
}

.modern-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ny-primary), var(--ny-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.modern-tile:hover::before {
    transform: scaleX(1);
}

.modern-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.modern-tile:active {
    transform: translateY(-2px) scale(0.98);
}

.modern-tile__icon-wrapper {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-bottom: 0.5rem;
    padding: 4px;
    transition: all 0.3s ease;
}

.modern-tile:hover .modern-tile__icon-wrapper {
    background: transparent;
    transform: scale(1.1);
}

.modern-tile__icon-wrapper i {
    font-size: 1.3rem;
    color: var(--ny-primary);
    transition: all 0.3s ease;
}

.modern-tile:hover .modern-tile__icon-wrapper i {
    color: var(--ny-accent);
}

.modern-tile span {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Disabled / Coming Soon Tiles */
.modern-tile--disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    filter: grayscale(0.5);
}

.modern-tile--disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
}

.modern-tile__icon--disabled i {
    color: #94a3b8 !important;
}

/* ===== Card Border Glow Effect ===== */
.card-border-glow {
    position: relative;
}

.card-border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-border-glow:hover::after {
    opacity: 1;
}

/* ===== Slide Up Animation for Toasts ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Carousel Improvements ===== */
#homeCarousel .carousel-indicators [data-bs-slide-to] {
    width: 24px !important;
    height: 6px !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
}

#homeCarousel .carousel-indicators .active {
    width: 36px !important;
    background-color: white !important;
}

/* ===== Recent News List Enhancements ===== */
.list-group-item-action {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item-action:hover {
    background-color: rgba(59, 130, 246, 0.03);
    border-left-color: var(--ny-accent);
}

.recent-activity-link .bg-light {
    transition: all 0.2s ease;
}

.recent-activity-link:hover .bg-light {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* ===== Fade In Up Animation ===== */
@keyframes fadeInUpCustom {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUpCustom 0.6s ease-out forwards;
}


/* Settings button icon centering */
.settings-btn i.bi-gear-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
}

.settings-btn i {
    margin: 0 !important;
    line-height: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Settings Page Modern Menu ===== */
.modern-tile-list {
    background: white;
}

.modern-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.04) !important;
    background: white !important;
    color: var(--ny-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.modern-menu-item:last-child {
    border-bottom: none !important;
}

.modern-menu-item:hover {
    background-color: rgba(59, 130, 246, 0.03) !important;
}

.modern-menu-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
}

.modern-menu-icon-wrapper i {
    font-size: 1.2rem;
    color: var(--ny-primary);
}

.modern-menu-item .modern-menu-label {
    font-weight: 600;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-right: 0.75rem;
}

.modern-menu-item .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3.25rem;
    text-align: center;
}

/* Color Variants */
.modern-menu-icon--success { background: rgba(16, 185, 129, 0.08); }
.modern-menu-icon--success i { color: #10b981 !important; }

.modern-menu-icon--info { background: rgba(6, 182, 212, 0.08); }
.modern-menu-icon--info i { color: #06b6d4 !important; }

.modern-menu-icon--warning { background: rgba(245, 158, 11, 0.08); }
.modern-menu-icon--warning i { color: #f59e0b !important; }

.modern-menu-icon--danger { background: rgba(239, 68, 68, 0.08); }
.modern-menu-icon--danger i { color: #ef4444 !important; }

.modern-menu-item--danger:hover {
    background-color: rgba(239, 68, 68, 0.04) !important;
}

/* Small icon wrapper for quick settings tiles */
.modern-tile__icon-wrapper--sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 0.3rem;
}

.modern-tile__icon-wrapper--sm i {
    font-size: 1.15rem;
}

/* ===== Pagination (Bootstrap) ===== */
.pagination .page-link {
    color: #0b1f3a;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(11, 31, 58, 0.15);
}

.pagination .page-item.active .page-link {
    background-color: #0b1f3a !important;
    border-color: #0b1f3a !important;
    color: #fff !important;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: rgba(11, 31, 58, 0.06);
    border-color: rgba(11, 31, 58, 0.18);
    color: #0b1f3a;
}
