/* Admin Specific Styles */
body.admin-body {
    background-color: var(--bg-darker);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 60px; /* Base desktop padding */
    width: 100%;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    width: 100%;
}

.login-form-new {
    width: 100%;
    max-width: 420px;
    padding: 45px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.login-header {
    margin-bottom: 35px;
}

.login-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--neon-green);
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.login-header h2 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group-new {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper > i:first-child {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control-new {
    width: 100%;
    height: 55px;
    padding: 12px 20px 12px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-new:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.form-control-new:focus + i:first-child,
.input-icon-wrapper:focus-within > i:first-child {
    color: var(--electric-blue);
}

.toggle-password {
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--electric-blue);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 55px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--electric-blue) 0%, var(--neon-green) 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.3);
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.9;
}

.login-btn.loading .btn-text,
.login-btn.loading .btn-icon {
    opacity: 0;
}

.login-btn.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =======================================
   ADMIN DASHBOARD PREMIUM REDESIGN
   ======================================= */
#adminDashboard {
    display: none;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    color: #0F1723;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#logoutBtn {
    background: transparent;
    color: #EF4444 !important;
    border: 2px solid #EF4444 !important;
    padding: 10px 24px;
    border-radius: 8px !important;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#logoutBtn:hover {
    background: #EF4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.admin-grid {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 30px;
}

/* Glassmorphism Cards */
.admin-container .glass-panel.product-form-container,
.admin-container .glass-panel.product-list-container {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 1) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    clip-path: none !important;
    padding: 35px !important;
    border-left: none !important;
    border-top: 4px solid #07C5B8 !important;
    height: fit-content;
}

.admin-container .glass-panel h3 {
    color: #0F1723 !important;
    font-family: var(--font-heading, 'Orbitron', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px !important;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1F2937;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: #F3F4F6;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #1F2937;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: #ffffff;
    border-color: #07C5B8;
    box-shadow: 0 0 0 4px rgba(7, 197, 184, 0.1);
}

.admin-container .btn-primary#submitBtn {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    background: linear-gradient(135deg, #07C5B8 0%, #B4D300 100%) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: none !important;
    box-shadow: 0 4px 15px rgba(7, 197, 184, 0.3);
}

.admin-container .btn-primary#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 197, 184, 0.4);
    background: linear-gradient(135deg, #B4D300 0%, #07C5B8 100%) !important;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
}

th {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(7, 197, 184, 0.05);
    transform: none; /* Removing the weird old translation */
    box-shadow: none;
}

td {
    color: #1F2937;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Action Buttons */
.action-btns button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.2s ease;
    background: #F3F4F6;
    font-size: 1rem;
}

.btn-edit {
    color: #07C5B8;
}
.btn-edit:hover {
    background: #07C5B8;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-delete {
    color: #EF4444;
}
.btn-delete:hover {
    background: #EF4444;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsiveness */
@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #adminDashboard {
        padding: 25px;
        margin: 20px auto;
        border-radius: 16px;
    }
    .admin-container .glass-panel.product-form-container,
    .admin-container .glass-panel.product-list-container {
        padding: 25px !important;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .login-wrapper {
        align-items: flex-start;
        padding-top: 50px;
        min-height: auto;
    }
    
    .login-form-new {
        padding: 35px 25px;
    }
    
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .login-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .login-form-new {
        padding: 30px 20px;
        border-radius: 14px;
    }
    .form-control-new {
        height: 50px;
        font-size: 0.95rem;
    }
    .login-btn {
        height: 50px;
        font-size: 1rem;
    }
}
