body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    cursor: none;
}

.cursor-dot {
    width: 12px;
    height: 12px;
    background: #2563eb;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    pointer-events: none;
}

.cursor-outline {
    width: 20px;
    height: 20px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999998;
    pointer-events: none;
}

/* Hover effect */
.cursor-hover {
    transform: scale(1.8);
    background: rgba(37, 99, 235, 0.1);
}

/* Hover state (NEW) */
.cursor-hover {
    background: #ff3b3b !important;
    border-color: #ff3b3b !important;
}




/* TOP BAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #f9fffa;
    color: rgb(28, 42, 39);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

/* FIX */
.logo img {
    max-height: 45px;
    margin-right: 12px;
    height: 60px;      /* fits inside topbar */
    width: auto;       /* maintain aspect ratio */
    object-fit: contain;
}

/* Text block */
.brand-text {
    display: flex;
    flex-direction: column;
}

/* Main title */
.brand-text h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.5px;
}

/* Subtitle */
.brand-text span {
    font-size: 12px;
    color: #64748b;
}

.top-right {
    display: flex;
    align-items: center;
}

.profile {
    width: 35px;
    border-radius: 50%;
    margin-right: 30px;
    margin-left: 10px;
    
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: 100%;
    background: #1e293b;
    color: white;
    transition: 0.3s;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar li:hover,
.sidebar .active {
    background: #334155;
}

/* MAIN CONTENT */
.main {
    margin-left: 200px;
    margin-right: 200px;
    padding: 60px 20px 20px;
    transition: 0.3s;
    min-height: calc(100vh - 120px); /* pushes footer down */
}

/* COLLAPSED SIDEBAR */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed li {
    text-align: center;
}

.main.expanded {
    margin-left: 60px;
}

/* TOGGLE BUTTON */
#toggleBtn {
    background: #003366;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

#search {
    padding: 10px;
    width: 300px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* GRID (reuse previous) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.app-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: visible;
}

.app-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.loader {
    display: none;
    border: 6px solid #eee;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto;
}

.tm {
    display: block;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #888;
    font-size: 12px;
}

/* FOOTER */
.footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px;
    font-size: 13px;
    color: #64748b;
}

/* Layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

/* Links */
.footer-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #2563eb;
    transition: 0.3s;
}

.footer-links a:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* NEW Badge */
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse 1.5s infinite;
    z-index: 5; 
    pointer-events: none;
}

/* Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 10px rgba(255, 0, 0, 0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}