/* ----------------------------
   GLOBAL STYLES
---------------------------- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7f8;
    color: #111;
}

a {
    text-decoration: none;
}

/* ----------------------------
   NAVBAR
---------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #003366;
    color: white;
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar .nav-links a {
    margin-left: 20px;
    color: white;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar .nav-links a:hover {
    color: #00a63f;
}

/* ----------------------------
   CARDS
---------------------------- */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ----------------------------
   BUTTONS
---------------------------- */
.btn-primary {
    background-color: #00a63f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #00752b;
}

/* ----------------------------
   STATS GRID
---------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

/* ----------------------------
   COUNTER (ANIMATION)
---------------------------- */
.counter {
    font-weight: 700;
    font-size: 2rem;
    color: #003366;
    transition: all 0.5s ease-in-out;
}

/* ----------------------------
   FORMS
---------------------------- */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    margin-top: 5px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00a63f;
}

/* ----------------------------
   FOOTER
---------------------------- */
footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

/* ----------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* USER ICON DROPDOWN */
.user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    cursor: pointer;
}

.user-dropdown .user-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s;
}

.user-dropdown:hover .user-icon {
    transform: scale(1.1);
}

/* Dropdown menu */
.user-dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 10;
}

.user-dropdown .dropdown-content a {
    color: #111;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background 0.2s;
}

.user-dropdown .dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Show dropdown on hover */
.user-dropdown:hover .dropdown-content {
    display: block;
}
/* Top bar */
.top-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

/* User icon */
.user-menu {
    position: relative;
}

#userIcon {
    font-size: 26px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 50%;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 55px;
    left: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 160px;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.dropdown a:hover {
    background: #f5f7f8;
}
.status-bar {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}
.back-btn{
    color: #f5f7f8;
    background-color: #0f1213;
    border-radius: 30px;
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 1000;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;

}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.guest {
    background: #fde68a;
    color: #92400e;
}

.badge.admin {
    background: #bbf7d0;
    color: #065f46;
}

.upgrade-link {
    background: #111;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
}

.upgrade-link:hover {
    background: #003366;
}