/**
 * Vedevs Technologies - Admin Portal Stylesheet
 * Location: assets/css/admin.css
 * Matches the core UI tokens of index.php, contact.php, and services.php
 */

/* ── Global Admin Reset & Variables ─────────────────────────────────────── */
:root {
    --adm-primary: #0284c7;
    --adm-primary-dark: #0369a1;
    --adm-blue: #2563eb;
    --adm-purple: #7c3aed;
    --adm-dark: #0b0f19;
    --adm-dark-card: #111827;
    --adm-border: #e2e8f0;
    --adm-text: #0f172a;
    --adm-muted: #64748b;
    --adm-bg: #f8fafc;
    --adm-radius: 18px;
}

body.admin-auth-body {
    background-color: #ffffff;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--adm-text);
    overflow: hidden;
}

@media (max-width: 991.98px) {
    body.admin-auth-body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

/* ── Fullscreen Edge-to-Edge Container ──────────────────────────────────── */
.admin-fullscreen-layout {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

@media (max-width: 991.98px) {
    .admin-fullscreen-layout {
        height: auto;
        min-height: 100vh;
    }
}

/* ── Left Fullscreen Hero / Brand Showcase (Dark Enterprise Navy) ───────── */
.admin-fullscreen-left {
    background: linear-gradient(145deg, #070a10 0%, #0b0f19 55%, #172554 100%);
    color: #ffffff;
    height: 100vh;
    padding: 60px 80px 60px 80px !important;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1199.98px) {
    .admin-fullscreen-left {
        padding: 48px 56px 48px 56px !important;
    }
}

@media (max-width: 991.98px) {
    .admin-fullscreen-left {
        height: auto;
        min-height: auto;
        padding: 36px 28px !important;
    }
}

.admin-fullscreen-left::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.admin-fullscreen-left::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Right Fullscreen Form Panel (Crisp, High-Contrast) ─────────────────── */
.admin-fullscreen-right {
    background-color: #ffffff;
    background-image:
        radial-gradient(circle at 90% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(124, 58, 237, 0.04) 0%, transparent 40%);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

@media (max-width: 991.98px) {
    .admin-fullscreen-right {
        height: auto;
        min-height: auto;
    }
}

.admin-right-top-bar {
    padding: 20px 24px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 576px) {
    .admin-right-top-bar {
        padding: 16px 20px 8px 20px;
    }
}

.admin-form-stage {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 16px 24px 28px 24px;
}

@media (max-width: 576px) {
    .admin-form-stage {
        padding: 16px 20px 28px 20px;
        max-width: 100%;
    }
}

.admin-right-bottom-footer {
    padding: 14px 36px 20px 36px;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

.admin-right-bottom-footer a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.admin-right-bottom-footer a:hover {
    color: var(--adm-primary);
}

.admin-back-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--adm-muted);
    text-decoration: none !important;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-back-link:hover {
    color: var(--adm-primary);
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.admin-left-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.admin-left-top {
    position: relative;
    z-index: 1;
}

.admin-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.admin-live-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.admin-hero-title {
    font-size: clamp(1.75rem, 2.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.admin-gradient-span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-hero-desc {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Feature Check Rows */
.admin-feature-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.admin-feature-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-feature-text small {
    color: rgba(148, 163, 184, 0.9);
    font-size: 0.78rem;
}

/* Left Bottom Trust Box */
.admin-trust-box {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-trust-box small {
    color: rgba(203, 213, 225, 0.75);
    font-size: 0.76rem;
}

/* Right Form Panel (Clean & Crisp) */
.admin-right-form-panel {
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 576px) {
    .admin-right-form-panel {
        padding: 32px 22px;
    }

    .admin-left-showcase {
        padding: 36px 24px;
    }
}

.admin-form-header {
    margin-bottom: 28px;
}

.admin-form-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--adm-text);
    margin-bottom: 6px;
}

.admin-form-subtitle {
    font-size: 0.88rem;
    color: var(--adm-muted);
    margin-bottom: 0;
}

/* Form Groups & Inputs */
.admin-field-group {
    margin-bottom: 18px;
}

.admin-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.admin-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.admin-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.admin-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    border-radius: 11px;
    padding: 11px 16px 11px 44px;
    font-size: 0.92rem;
    color: var(--adm-text);
    outline: none;
    transition: all 0.2s ease;
}

.admin-input:focus {
    background: #ffffff;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.admin-input:focus+.admin-input-icon,
.admin-input-wrap:focus-within .admin-input-icon {
    color: var(--adm-primary);
}

/* Password Toggle Button */
.admin-pw-toggle {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.admin-pw-toggle:hover {
    color: var(--adm-text);
}

/* Row with Checkbox & Forgot link */
.admin-actions-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.82rem;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    color: #475569;
    font-weight: 500;
    margin-bottom: 0;
}

.admin-checkbox-label input[type="checkbox"] {
    accent-color: var(--adm-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.admin-forgot-link {
    color: var(--adm-primary);
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.admin-forgot-link:hover {
    color: var(--adm-primary-dark);
    text-decoration: underline !important;
}

/* Submit Button */
.btn-admin-submit {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    padding: 13px 20px;
    font-size: 0.96rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 22px -6px rgba(2, 132, 199, 0.45);
}

.btn-admin-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -6px rgba(2, 132, 199, 0.55);
    color: #ffffff;
}

.btn-admin-submit:active {
    transform: translateY(0);
}

.btn-admin-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Security Notice Box at Bottom of Form */
.admin-security-note {
    margin-top: 22px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.admin-security-note svg {
    flex-shrink: 0;
    color: #0284c7;
    margin-top: 2px;
}

/* Alerts */
.admin-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.86rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.admin-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.admin-alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* ── Minimalist Bottom Footer ───────────────────────────────────────────── */
.admin-bottom-footer {
    width: 100%;
    max-width: 1040px;
    margin: 20px auto 0 auto;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

.admin-bottom-footer a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.admin-bottom-footer a:hover {
    color: var(--adm-primary);
}

/* ── Dashboard Skeleton Styles (for admin/dashboard.php) ─────────────────── */
.admin-dash-header {
    background: #ffffff;
    border-bottom: 1px solid var(--adm-border);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--adm-border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.84rem;
}

.admin-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.76rem;
}

.btn-admin-logout {
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-logout:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.admin-dash-stat-card {
    background: #ffffff;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    height: 100%;
}

/* ── Admin Navigation Links & Header Tabs ────────────────────────────────── */
.admin-nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.admin-nav-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-nav-item:hover {
    color: var(--adm-primary);
    background: rgba(255, 255, 255, 0.7);
}

.admin-nav-item.active {
    color: var(--adm-primary-dark);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* ── Form Type & Status Badges ─────────────────────────────────────────── */
.badge-form-contact {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-form-analysis {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status-new {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status-new .status-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.badge-status-contacted {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-status-discussion {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-status-closed {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ── Filter Tabs & Action Controls ─────────────────────────────────────── */
.admin-filter-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-filter-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f8fafc;
}

.admin-filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.admin-filter-pill.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ── Table Styling ─────────────────────────────────────────────────────── */
.admin-table thead th {
    background: #f8fafc;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    padding: 14px 16px;
}

.admin-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.admin-action-btn:hover {
    background: #f1f5f9;
    color: var(--adm-primary);
    border-color: #cbd5e1;
}

.admin-action-btn.delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

/* ── Admin Navigation Links & Header Tabs ────────────────────────────────── */
.admin-nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.admin-nav-item {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-nav-item:hover {
    color: var(--adm-primary);
    background: rgba(255, 255, 255, 0.7);
}

.admin-nav-item.active {
    color: var(--adm-primary-dark);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* ── Form Type & Status Badges ─────────────────────────────────────────── */
.badge-form-contact {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-form-analysis {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status-new {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-status-new .status-beacon {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.badge-status-contacted {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-status-discussion {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

.badge-status-closed {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ── Filter Tabs & Action Controls ─────────────────────────────────────── */
.admin-filter-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-filter-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f8fafc;
}

.admin-filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.admin-filter-pill.active .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

/* ── Table Styling ─────────────────────────────────────────────────────── */
.admin-table thead th {
    background: #f8fafc;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    padding: 14px 16px;
}

.admin-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.admin-action-btn:hover {
    background: #f1f5f9;
    color: var(--adm-primary);
    border-color: #cbd5e1;
}

.admin-action-btn.delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}