body {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}
:root {
    --primary-gradient: #7f1d1d;
    --secondary-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --purple-gradient: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px 0 rgba(220, 38, 38, 0.15);
    --shadow-heavy: 0 20px 60px 0 rgba(0, 0, 0, 0.1);
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
}
.navbar.scrolled .nav-link,
.navbar.scrolled a {
    color: #111 !important; /* Use your site's main text color here */
}
.txtPrev {
    color: #1a1a1a;
}
.logo-manglam {
    font-family: 'Great Vibes', 'Dancing Script', 'Parisienne', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    color: white;
    letter-spacing: -1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.1;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo-manglam.scrolled {
    color: #dc3545 !important; /* Red color */
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Navbar scrolled background */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-manglam {
        font-size: 1.8rem;
    }
}

/* Homepage Styles */
.hero-section {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}
.hero-decoration-top-left {
    position: absolute;
    top: 40px;
    left: 50px;
    width: 200px;
    height: 200px;
    opacity: 0.8;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 220px;
    height: 220px;
    opacity: 0.5;
    z-index: 1;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-decoration-center {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 150px;
    height: 150px;
    opacity: 0.5;
    z-index: 1;
    animation: float 10s ease-in-out infinite;
    transform: translateY(-50%);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    padding: 2rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card-modern {
    background: white;
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: black;
}


.feature-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.btn-modern {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Login Styles */
.Loginbtn-modern {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.Loginbtn-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: black;
    transition: left 0.5s;
}
.Loginbtn-modern:hover {
    transform: translateY(-3px);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.login-container {
    min-height: 100vh; /* Reduced from 80vh */
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-gradient);
}

/* Dashboard Styles */
.dashboard-container {
    background: #ffffff;
    min-height: 100vh;
}
.noUnder {
    text-decoration: none;
}
.sidebar-modern {
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #e2e8f0;
    min-height: 100vh;
    position: fixed;
    width: 280px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: var(--primary-gradient);
    color: white;
}

.nav-item-modern {
    padding: 1rem 2rem;
    margin: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1a1a1a;
    font-weight: 500;
}

.nav-item-modern:hover {
    background: #f1f5f9;
    color: #000000;
    transform: translateX(5px);
}

.nav-item-modern.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.main-content {
    margin-left: 280px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.activity-feed {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-height: 500px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.upload-zone-modern {
    border: 3px dashed #cbd5e1;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-zone-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone-modern:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-zone-modern:hover::before {
    opacity: 0.05;
}

.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.template-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.template-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-modern {
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar-modern {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-modern {
        transform: translateX(-100%);
    }

    .sidebar-modern.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.hover-text-white:hover {
    color: white !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
        color: #e2e8f0;
    }

    .stat-card,
    .chart-container,
    .activity-feed,
    .contact-card,
    .template-item {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
}

/* #pdf-container {
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.08);

    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.pdf-container {
    position: relative;
    border: 1px solid #bbb;
    width: 600px;
    height: 800px;
    background: #fafafa;
    margin-bottom: 16px;
}
.draggable-clone,
.draggable-palette-item {
    min-width: 70px;
    min-height: 30px;
    text-align: center;
    text-decoration: underline;
    /* padding: 3px 8px; */
    /* border: 1px dashed #888; */
    /* background: #fff; */
    cursor: grab;
    /* border-radius: 6px; */
    margin-bottom: 12px;
    font-weight: 600;
    color: #b10e2e;
}
#draggable-palette {
    margin-top: 50px;
}
#pdf-canvas {
    border-radius: 16px;
    background: #222;
    display: block;
    max-width: 100% !important;
    height: auto !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}
.feature-card-modern {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}
.draggable-text-custom {
    position: absolute;
    top: 600px;
    left: 600px;
    min-width: 60px;
    cursor: move;
    font-size: 20px;
    /* background: rgba(255, 255, 255, 0.7); */
    color: #222;
    /* border-radius: 6px; */
    padding: 3px 10px;
    z-index: 99999999;
    outline: none;
    /* border: 2px dashed #aaa; */
    /* transition: background 0.15s; */
}
.draggable-text-custom:focus {
    /* background: #ffe; */
    border-color: var(--primary-gradient, #dc2626);
}
/* Mobile first */
@media (max-width: 600px) {
    .hero-decoration-top-left,
    .hero-decoration-bottom-right,
    .hero-decoration-center {
        pointer-events: none;
    }
    .navbar-nav ul li {
        color: #000000 !important;
    }
    .login-container {
        padding: 16px !important;
        min-height: 100vh;
    }
    .login-card {
        max-width: 100vw;
        width: 100vw;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: none;
    }
    .page-content {
        padding: 0 !important;
        margin: 0 !important;
    }
    .sidebar-modern {
        position: static;
        width: 100%;
        min-height: auto;
        box-shadow: none;
        border-right: none;
    }
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    .feature-grid,
    .stats-grid,
    .template-gallery,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .pdf-container {
        width: 100vw;
        height: 70vh;
        min-height: 400px;
    }
    .draggable-text-custom {
        font-size: 16px;
        min-width: 48px;
        top: 50px;
        left: 50px;
    }
    .dashboard-container,
    .main-content,
    .page-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: 100vh !important;
    }
    /* .Loginbtn-modern {
        height: 60px;
        font-size: 0.8rem;
    } */
    /* .table-responsive table thead {
        display: none; 
    }
    .table-responsive table,
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive td {
        display: block;
        width: 100%;
    }
    .table-responsive tr {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
    }
    .table-responsive td {
        padding-left: 50%;
        position: relative;
        min-height: 48px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .table-responsive td:before {
        position: absolute;
        top: 10px;
        left: 16px;
        width: 48%;
        white-space: pre-wrap;
        color: #999;
        font-size: 0.95rem;
        font-weight: 600;
        content: attr(data-label);
    } */
    .dashboard-section {
        padding: 8px !important;
    }
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .row.mb-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .col-md-3,
    .col-md-1,
    .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    #prev-page,
    #next-page {
        width: 48%;
        min-width: 110px;
        margin-bottom: 10px;
        font-size: 1.05rem;
    }
    .draggable-palette-item,
    .draggable-clone {
        font-size: 1rem !important;
        padding: 8px 12px !important;
        min-width: 60px !important;
    }
    #pdf-container-wrapper {
        overflow: hidden !important;
        max-width: 100%; /* Fit width of container */
        position: relative; /* allow absolute children positioning */
    }
    #pdf-container-wrapper canvas.pdf-canvas {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }
    .Loginbtn-modern {
        width: 95vw !important;
        min-width: 180px;
        height: 42px !important;
        font-size: 1rem !important;
    }
}

.changeCard {
    background-color: var(--primary-gradient);

    display: flex;
    justify-self: center;
    align-items: center;
    border: none;
    margin-top: 10%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.lottie-hero {
    width: 700px;
    height: 800px;

    display: block;
    margin: auto;
}
