:root {
    --navy: #053c8d;
    --ocean: #0083ca;
    --sky: #90E0EF;
    --gold: #FFD700;
    --white: #ffffff;
    --light: #f4f8fb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --radius: 18px;
    --ocean-blue: #006699;
    --light-blue: #BEE9FF;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap; /* Forces layout to load without waiting */
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient( 135deg, #eef6fb, #f7fbfd );
    font-family: "Inter", sans-serif;
    color: var(--text);
    min-height: 100vh;
    border-radius: 20%;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE 10+ and Edge */
    user-select: none; /* Standard syntax for Chrome and Opera */
}

/* HEADER */

.top-header {
    background: linear-gradient( 135deg, var(--navy), var(--ocean) );
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--gold);
}

.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gov-logo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 2px solid var(--gold);
    font-size: 1.8rem;
    color: var(--gold);
}

.brand-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.brand-text p {
    color: var(--sky);
    margin-top: 6px;
}

.datetime-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.8rem 1rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
    text-align: right;
}

#current-time {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* NAVIGATION */

.main-nav {
    background: var(--navy);
    padding: 0 2rem;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

    .main-nav a {
        color: var(--white);
        text-decoration: none;
        display: inline-block;
        padding: 1rem 1.2rem;
        transition: 0.3s ease;
        position: relative;
    }

        .main-nav a:hover,
        .main-nav a.active {
            color: var(--gold);
        }

            .main-nav a.active::after,
            .main-nav a:hover::after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 12%;
                width: 76%;
                height: 3px;
                background: var(--gold);
                border-radius: 20px;
            }



.sidebar {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    border-top: 4px solid var(--gold);
}

.section-header {
    margin-bottom: 1.2rem;
}

    .section-header h2 {
        color: var(--navy);
        font-size: 1.1rem;
    }
/* CIRCULARS */

.circular-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .circular-list a {
        text-decoration: none;
        color: var(--text);
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem;
        border-radius: 14px;
        transition: all 0.3s ease;
    }

        .circular-list a:hover {
            background: rgba(0, 119, 182, 0.08);
            transform: translateX(4px);
        }

.circle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--ocean), var(--navy) );
    color: var(--gold);
    font-size: 1rem;
    border: 2px solid var(--gold);
}
/* WORKSPACE */
.dashboard-layout {
    width: 100%;
    padding: 1rem 2rem 2.5rem 2rem;
    box-sizing: border-box;
    background: linear-gradient( 180deg, var(--light-blue), var(--light) );
    border-top: 4px solid #f4c400;
}

.workspace-wrapper {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
   
    box-sizing: border-box;
}


.home-icon-link {
    position: absolute;
   
    top: 2.2rem;
   
    left: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease;
    opacity: 0.9;
}

    .home-icon-link:hover {
        transform: scale(1.08); 
        
    }

.workspace.row {
    display: grid;    
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0;
}

.system-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03); 

    padding: 2rem 1.75rem;
    box-sizing: border-box;
   
    border-top: 4px solid var(--gold, #f4c400);
    
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    
    .system-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .system-card i,
    .system-card img {
        margin: 0 !important;
    }



.card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--navy), var(--ocean) );
    color: var(--gold);
    font-size: 1.3rem;
}

.card-top h3 {
    color: var(--navy);
    font-size: 1.3rem;   
}

.project-badge {
    display: inline-block;
    margin-bottom: 6px;
    background: rgba(255, 215, 0, 0.12);
    color: #9a7300;
    border: 1px solid rgba(255,215,0,0.45);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}
/* LIST */

.system-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .system-list li {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.8rem;
        border-radius: 12px;
        background: #f8fbfd;
        transition: all 0.3s ease;
        /*border-left: 4px solid var(--ocean-blue);*/
    }

        .system-list li:hover {
            background: rgba(144, 224, 239, 0.18);
            transform: translateX(6px);
            border-left: 4px solid var(--gold);
        }

    .system-list i {
        color: var(--ocean-blue);
        min-width: 20px;
    }

    .system-list a {
        text-decoration: none;
        color: var(--navy);
        font-weight: 600;
        transition: 0.3s ease;
    }

        .system-list a:hover {
            color: var(--ocean);
        }

.tag {
    margin-left: auto;
    background: rgba(0,119,182,0.12);
    color: var(--ocean);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-muted {
    margin-left: auto;
    background: #e5e7eb;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.disabled-item {
    opacity: 0.75;
}
/* NEWS TICKER */

.news-ticker {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.ticker-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: scrollNews 18s linear infinite;
}

.news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.news-item {
    background: #f8fbfd;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

@keyframes scrollNews {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}
/* Rounded Home Button Styling */
.home-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: #005696;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
}

    .home-card-btn:hover {
        transform: translateY(-2px);
        background-color: #003e6d;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

.home-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* 2. FOOTER */
.footer {
    background-color: var(--navy) !important;
    border-top: none !important;
}

    .footer .last-updated {
        color: rgba(255, 255, 255, 0.75) !important;
        font-size: 0.75rem;
    }

    .footer .copyright-text {
        color: #ffffff !important;
        font-size: 0.8rem;
        font-weight: 500;
        margin: 0;
    }

.header-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: transparent !important;
}


.responsive-banner {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: unset !important;
}

@media (min-width: 1400px) {
    .responsive-banner {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .responsive-banner {
        max-height: 180px;
    }
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-content {
    text-align: left;
}

    .text-content h1 {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 4px 0; 
        letter-spacing: 0.5px;
    }

    .text-content h2 {
        font-size: 18px;
        font-weight: normal;
        margin: 0 0 3px 0;
        opacity: 0.9;
    }

    .text-content p {
        font-size: 14px;
        color: #a0c4ff; 
        margin: 0;
        opacity: 0.7;
    }


.logo-left img {
    height: 75px;
    width: auto;
    display: block;
}

.logo-right img {
    height: 130px;
    width: auto;
    display: block;
}

.portal-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

.portal-link-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 10px;
}
.card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.circular-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    border: 2px solid #e2e8f0; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden; 
    flex-shrink: 0; 
    box-sizing: border-box;
}

.rounded-circle-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.card-right {
    display: flex;
    align-items: center;
}

.badge-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tras-badge {
    background-color: #eef2ff;
    color: #4f46e5;
}

.gstn-badge {
    background-color: #ecfdf5;
    color: #059669;
}

/* Responsive Styles for Mobile Screens */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center; 
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 10px;
    }

    .header-left-group {
        flex-direction: column; 
        gap: 10px;
    }

    .text-content {
        text-align: center; 
    }

    .logo-right {
        order: 3;
    }
}
/* TABLET */
@media (max-width: 1199px) {

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .workspace {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* MOBILE */

@media (max-width: 767px) {

    .top-header {
        gap: 1rem;
    }

    .branding {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .datetime-card {
        width: 100%;
        text-align: left;
    }

    .news-ticker {
        height: 300px;
    }
}
/* SMALL MOBILE */

@media (max-width: 480px) {

    .dashboard-layout {
        padding: 1rem;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    .system-card {
        padding: 1rem;
    }

    .system-list li {
       
        display: flex;
        align-items: center;
        gap: 12px; 
        margin-bottom: 12px;
    }

    .tag,
    .badge-muted {
        margin-left: 0;
    }
}
