body {
    background: #060B18;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.login-card {
    background: rgba(255, 255, 255, 0.035);
    padding: 40px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.067);
}

.title {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Fraunces', serif;
}

.logo {
    width: 120px;
    margin: 10px 0;
}

.motto {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 25px;
}

label {
    display: block;
    text-align: left;
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.067);
    background: #0F1D38;
    color: white;
}

.password-wrapper {
    position: relative;
}

.show-toggle {
    position: absolute;
    right: 12px;
    top: 14px;
    cursor: pointer;
    font-size: 12px;
    color: #3B82F6;
}

.remember-row {
    display: flex;
    align-items: center;
    margin-top: 15px;
    color: rgba(255,255,255,0.65);
}

.signin-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #3B82F6;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
}

.signin-btn:hover {
    background: #2563EB;
}

.links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #3B82F6;
}

footer {
    margin-top: 20px;
    font-size: 12px;
    color: #777;
}

/* Responsive SignIn Logo */
.signin-logo {
    display: block;
    margin: 0 auto;
    width: 180px;
    height: auto;
}

@media (max-width: 992px) {
    .signin-logo {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .signin-logo {
        width: 120px;
    }
}

/* USER MENU */
.btn-user {
    background-color: #3B82F6;
    color: white;
    border-color: #0b5ed7;
}

.btn-user:hover {
    background-color: #0b5ed7;
}

.dropdown-user .dropdown-menu {
    background-color: #0F1D38;
}

/* RESOURCES MENU */
.btn-resources {
    background-color: #6366F1;
    color: white;
}

.btn-resources:hover {
    background-color: #4f52cc;
}

.dropdown-resources .dropdown-menu {
    background-color: #0F1D38;
}

/* ADMIN MENU */
.btn-admin {
    background-color: #ffc107;
    color: black;
}

.btn-admin:hover {
    background-color: #e0a800;
}

.dropdown-admin .dropdown-menu {
    background-color: #0F1D38;
}

/* ==================== HEADER & NAVBAR WIDTH FIX ==================== */
.bg-primary.border-bottom,
.bg-light.border-bottom {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bg-primary .container-fluid,
.bg-light .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* ==================== GALLERY GRID ==================== */
.desktop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

/* ==================== GALLERY CARD ==================== */
.desktop-card {
    background: #0F1D38;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==================== IMAGE PLACEHOLDER ==================== */
.desktop-img.placeholder {
    width: 100%;
    height: 140px;
    background: #1E2A4A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
    margin-bottom: 12px;
}

/* Card Title */
.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

/* Card Description */
.card-description {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.25rem;
    height: calc(1.25rem * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.disabled-delete {
    background-color: #cccccc !important;
    border-color: #b3b3b3 !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    pointer-events: none;
}

.score-orange {
    color: #ff9800;
}

.score-dynamic {
    color: var(--score-color);
}

.badge-dynamic {
    background-color: var(--score-color);
    color: white;
}

.toast-container .toast.text-bg-success {
    background-color: #28a745 !important;
}
.toast-container .toast.text-bg-error {
    background-color: #dc3545 !important;
}
.toast-container .toast.text-bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}
.toast-container .toast.text-bg-info {
    background-color: #17a2b8 !important;
}

/* ==================== FORCE DARK GALLERY CARDS ==================== */
.desktop-gallery-grid .desktop-card,
.desktop-card {
    background: #0F1D38 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
}

.desktop-card * {
    color: white !important;
}

.desktop-img.placeholder {
    background: #1E2A4A !important;
}

/* Make sure title and description are visible */
.desktop-card .card-title,
.desktop-card .card-description {
    color: white !important;
}

/* ==================== FORCE DARK BOOTSTRAP CARDS ==================== */
.card,
.desktop-card {
    background-color: #0F1D38 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.card .card-body,
.desktop-card .card-body {
    color: white !important;
}

.card-title,
.card-subtitle,
.card-text {
    color: white !important;
}

/* Placeholder */
.desktop-img.placeholder {
    background: #1E2A4A !important;
}

/* ==================== NAVBAR & FOOTER ==================== */
/* ==================== FORCE NAVBAR BLACK (Bootstrap Override) ==================== */
.navbar,
.navbar.bg-primary,
.navbar.bg-light,
.navbar .container-fluid,
.navbar .container {
    background-color: #060B18 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: none !important;
}

.navbar .nav-link,
.navbar .navbar-brand,
.navbar .dropdown-toggle {
    color: white !important;
}

.navbar .nav-link:hover,
.navbar .dropdown-toggle:hover {
    color: #3B82F6 !important;
}

/* Remove any white background from dropdowns */
.navbar .dropdown-menu {
    background-color: #0F1D38 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

/* ==================== NEW: DROPDOWN TEXT FIX ==================== */
.navbar .dropdown-menu .dropdown-item,
.navbar .dropdown-menu .dropdown-item * {
    color: white !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #1E2A4A !important;
    color: white !important;
}

/* ==================== FORCE FOOTER BLACK ==================== */
footer,
footer.bg-light,
.bg-light {
    background-color: #060B18 !important;
    color: rgba(255,255,255,0.75) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

footer a {
    color: #3B82F6 !important;
}

footer a:hover {
    color: #60a5fa !important;
}

/* ==================== FOOTER TEXT ==================== */
footer .text-muted {
    color: rgba(255,255,255,0.75) !important;
}

footer .text-danger {
    color: #dc3545 !important;
}

.login-card {
    background: rgba(255, 255, 255, 0.035);
    padding: 40px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: white !important;
}

.motto {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

.form-control {
    background: #0F1D38;
    border: 1px solid rgba(255,255,255,0.067);
    color: white;
}

/* ==================== LOGIN PAGE (Dark Theme) ==================== */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.login-card,
.card {
    background: rgba(255, 255, 255, 0.035) !important;
    padding: 40px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: white !important;
}

.motto {
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}

.form-control,
input[type="email"],
input[type="password"] {
    background: #0F1D38 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: white !important;
}

.form-control:focus {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

.btn-primary {
    background: #3B82F6 !important;
    color: white !important;
    border-radius: 16px;
    padding: 12px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #2563EB !important;
}

.alert-danger {
    background: #dc3545 !important;
    color: white !important;
}
.card {
    overflow: hidden;          /* prevents content from spilling */
}

.score-card {                  /* optional: add this class to the card */
    min-height: 140px;
}
/* FIX BOOTSTRAP DROPDOWN POSITIONING */
.navbar .dropdown-menu {
    position: absolute !important;
    inset: auto !important;
    transform: translateY(0) !important;
    z-index: 9999 !important;
}
