/* BINO GARAGE - PREMIUM ADMIN DASHBOARD STYLES */

/* Reset & Fonts ensure they match the main site */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --neon-green: #39FF14;
    --neon-green-dim: #2bcc10;
    --neon-green-dark: #1a7a0a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #222222;
}

.admin-body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(57, 255, 20, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(57, 255, 20, 0.05), transparent 25%);
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Base grid pattern for tech feel */
.admin-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.admin-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#login-section.active {
    display: flex;
    opacity: 1;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#dashboard-section.active {
    display: block;
    opacity: 1;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.98) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* === PREMIUM LOGIN === */
#login-section {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 3.5rem 3rem;
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(57, 255, 20, 0.15);
    border-radius: 24px;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 40px rgba(57, 255, 20, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Subtle animated glow behind login card */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.login-container:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

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

.admin-logo {
    display: block;
    margin: 0 auto 2rem;
    width: 220px;
    filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.4));
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, #000 40%, transparent 72%);
    mask-image: radial-gradient(ellipse 85% 80% at center, #000 40%, transparent 72%);
    mix-blend-mode: lighten;
}

.login-container h2 {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.login-container h2 span {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--neon-green);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 
        0 0 15px rgba(57, 255, 20, 0.15),
        inset 0 0 0 1px var(--neon-green);
}

.form-group input::placeholder {
    color: #555;
    font-family: 'Inter', sans-serif;
}

/* Custom Select Dropdown Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339FF14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group select option {
    background-color: var(--bg-card);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: #4dff33;
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5), 0 0 50px rgba(57, 255, 20, 0.2);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.w-100 {
    width: 100%;
}

.error-message {
    color: #ff4444;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    padding: 10px;
    display: none;
}
.error-message:not(:empty) {
    display: block;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

.success-message {
    color: var(--neon-green);
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(57, 255, 20, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    text-align: center;
}

/* === DASHBOARD LAYOUT === */
#dashboard-section {
    min-height: 100vh;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: rgba(10, 10, 12, 0.85);
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.admin-nav-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.admin-nav-brand img {
    height: 48px;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.3));
    mix-blend-mode: lighten;
}

.admin-nav-brand span {
    background: linear-gradient(90deg, #fff, var(--neon-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.admin-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.admin-card {
    background: rgba(15, 15, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.admin-card:hover {
    border-color: rgba(57, 255, 20, 0.2);
    transform: translateY(-4px);
}

.admin-card h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-card h3 i {
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

/* Form structure inside cards */
.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.badges-row {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
    font-weight: 500;
}

.checkbox-label:hover {
    border-color: rgba(57, 255, 20, 0.5);
    background: rgba(57, 255, 20, 0.05);
}

.checkbox-label input {
    accent-color: var(--neon-green);
    width: 1.4rem;
    height: 1.4rem;
    cursor: pointer;
}

/* === PREMIUM TABLE === */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(0,0,0,0.2);
}

.admin-table th, .admin-table td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.4);
    position: sticky;
    top: 0;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table img {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.admin-table td strong {
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.btn-danger {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    color: #ff4444;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover {
    background: #ff3333;
    color: white;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .admin-nav-brand {
        font-size: 1.2rem;
    }
}

/* === CUSTOM FILE UPLOAD === */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(57, 255, 20, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.file-upload-wrapper:hover {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-design {
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.file-upload-design i {
    font-size: 2.2rem;
    color: var(--neon-green);
    margin-bottom: 0.6rem;
    opacity: 0.8;
}

.file-upload-design p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.file-upload-wrapper:hover .file-upload-design {
    transform: translateY(-5px);
}
