/* ===================================
   Site.css - Global Styles
   ASP.NET MVC Calculator Application
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-rgb: 99, 102, 241;

    /* Secondary Colors */
    --secondary: #64748b;
    --secondary-dark: #475569;
    --secondary-light: #94a3b8;

    /* Status Colors */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Background Colors */
    --bg-body: #f8fafc;
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e0e7ff;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #f1f5f9;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Spacing */
    --navbar-height: 76px;
}

/* ===================================
   Dark Mode Variables
   =================================== */
[data-theme="dark"],
.dark-mode {
    /* Background Colors */
    --bg-body: #0f172a;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e1b4b;
    --bg-card: #1e293b;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-light: #1e293b;

    /* Border Colors */
    --border-color: #334155;
    --border-light: #1e293b;

    /* Shadows - darker for dark mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

/* Dark mode specific overrides */
[data-theme="dark"] body,
body.dark-mode {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
}

/* Dark mode navbar */
[data-theme="dark"] .navbar,
.dark-mode .navbar {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

[data-theme="dark"] .navbar.scrolled,
.dark-mode .navbar.scrolled {
    background: rgba(30, 27, 75, 0.98);
}

/* Dark mode cards */
[data-theme="dark"] .card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .calculator-wrapper,
.dark-mode .card,
.dark-mode .tool-card,
.dark-mode .feature-card,
.dark-mode .calculator-wrapper {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Dark mode dropdown */
[data-theme="dark"] .dropdown-menu,
.dark-mode .dropdown-menu {
    background: #1e293b;
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item,
.dark-mode .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus,
.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
    background: #334155;
    color: #fff;
}

[data-theme="dark"] .dropdown-header,
.dark-mode .dropdown-header {
    color: var(--text-muted);
}

[data-theme="dark"] .dropdown-divider,
.dark-mode .dropdown-divider {
    border-color: var(--border-color);
}

/* Dark mode footer */
[data-theme="dark"] .site-footer,
.dark-mode .site-footer {
    background: #0f172a;
}

[data-theme="dark"] .footer-main,
.dark-mode .footer-main {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .footer-bottom,
.dark-mode .footer-bottom {
    background: #020617;
    border-color: var(--border-color);
}

/* Dark mode inputs */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
.dark-mode .form-control,
.dark-mode .form-select {
    background: #1e293b;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
    background: #1e293b;
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder,
.dark-mode .form-control::placeholder {
    color: var(--text-muted);
}

/* Dark mode tool cards */
[data-theme="dark"] .tool-card,
.dark-mode .tool-card {
    background: var(--bg-card);
}

[data-theme="dark"] .tool-card:hover,
.dark-mode .tool-card:hover {
    background: #334155;
}

[data-theme="dark"] .tool-title,
[data-theme="dark"] .tool-desc,
.dark-mode .tool-title,
.dark-mode .tool-desc {
    color: var(--text-primary);
}

/* Dark mode soft backgrounds */
[data-theme="dark"] .bg-primary-soft,
.dark-mode .bg-primary-soft {
    background: rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .bg-success-soft,
.dark-mode .bg-success-soft {
    background: rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .bg-danger-soft,
.dark-mode .bg-danger-soft {
    background: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .bg-warning-soft,
.dark-mode .bg-warning-soft {
    background: rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .bg-info-soft,
.dark-mode .bg-info-soft {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .bg-purple-soft,
.dark-mode .bg-purple-soft {
    background: rgba(139, 92, 246, 0.2);
}

[data-theme="dark"] .bg-pink-soft,
.dark-mode .bg-pink-soft {
    background: rgba(236, 72, 153, 0.2);
}

/* Dark mode section backgrounds */
[data-theme="dark"] .tools-section,
[data-theme="dark"] .features-section,
[data-theme="dark"] .cta-section,
.dark-mode .tools-section,
.dark-mode .features-section,
.dark-mode .cta-section {
    background: var(--bg-body);
}

/* Dark mode feature cards */
[data-theme="dark"] .feature-card,
.dark-mode .feature-card {
    background: var(--bg-card);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature-card p,
.dark-mode .feature-card h3,
.dark-mode .feature-card p {
    color: var(--text-primary);
}

/* Dark mode toast */
[data-theme="dark"] .app-toast,
.dark-mode .app-toast {
    background: #1e293b;
    color: var(--text-primary);
}

/* Dark mode back to top */
[data-theme="dark"] .btn-back-to-top,
.dark-mode .btn-back-to-top {
    background: var(--primary);
    color: #fff;
}

/* Dark mode theme toggle button */
[data-theme="dark"] .btn-theme-toggle,
.dark-mode .btn-theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #fbbf24;
}

[data-theme="dark"] .btn-theme-toggle:hover,
.dark-mode .btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Dark mode category titles */
[data-theme="dark"] .category-title,
.dark-mode .category-title {
    color: var(--text-primary);
}

/* Dark mode section headers */
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-desc,
.dark-mode .section-title,
.dark-mode .section-desc {
    color: var(--text-primary);
}

[data-theme="dark"] .section-badge,
.dark-mode .section-badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

/* ===================================
   Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Navigation / Header
   =================================== */
.site-header {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(79, 70, 229, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: all var(--transition-fast);
}

.navbar-brand:hover .brand-icon {
    background: rgba(255, 255, 255, 0.25);
}

.brand-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.2);
}

.toggler-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Nav Links */
.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem !important;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

.navbar-nav .nav-link i {
    font-size: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: 0.75rem;
    min-width: 280px;
    margin-top: 0.5rem !important;
    background: white;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-body);
    color: var(--primary);
}

.dropdown-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 0.9375rem;
}

.dropdown-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-theme {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-theme:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.btn-nav-outline {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-nav-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-nav-solid {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-nav-solid:hover {
    background: var(--bg-body);
    color: var(--primary-dark);
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
    flex: 1;
    padding-top: var(--navbar-height);
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0 4rem;
    margin-bottom: -2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.page-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    position: relative;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 4rem 0;
    background: var(--bg-body);
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: var(--text-light);
    margin-top: auto;
}

.footer-top {
    padding: 4rem 0 3rem;
}

/* Footer Brand */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.footer-logo .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-about {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.625rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer Widgets */
.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: white;
    padding-left: 6px;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-contact li i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: white;
}

/* Newsletter */
.newsletter {
    margin-top: 1.5rem;
}

.newsletter-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.newsletter-form .form-control::placeholder {
    color: var(--text-muted);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    box-shadow: none;
    color: white;
}

.newsletter-form .btn {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.copyright strong {
    color: white;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: white;
}

/* ===================================
   Back to Top Button
   =================================== */
.btn-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* ===================================
   Toast Notifications
   =================================== */
.toast-wrapper {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}

.app-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    pointer-events: auto;
}

.app-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--success);
}

.toast-icon.error {
    color: var(--danger);
}

.toast-icon.warning {
    color: var(--warning);
}

.toast-message {
    font-size: 0.9375rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: white;
}

/* ===================================
   Utility Classes
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(79, 70, 229, 0.98);
        margin: 1rem -0.75rem -1rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .navbar-actions {
        flex-wrap: wrap;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
    }

    .nav-divider {
        display: none;
    }

    .dropdown-menu {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0 !important;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .dropdown-header {
        color: rgba(255, 255, 255, 0.5);
    }

    .dropdown-item small {
        color: rgba(255, 255, 255, 0.5);
    }

    .page-title {
        font-size: 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 2rem 0 3rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .footer-top {
        padding: 3rem 0 2rem;
    }

    .footer-widget {
        text-align: center;
    }

    .footer-title {
        display: block;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn-back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ===================================
   Animation Keyframes
   =================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Page animations */
.page-header .page-title,
.page-header .page-subtitle,
.page-header .breadcrumb {
    animation: slideUp 0.6s ease forwards;
}

.page-header .page-subtitle {
    animation-delay: 0.1s;
}

.page-header .breadcrumb {
    animation-delay: 0.2s;
}

.feature-card {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }