/* ============================================
   LUSHNJA.BIZ — Admin Panel Styles
   ============================================ */

:root {
    --admin-bg: #f5f6f8;
    --admin-surface: #ffffff;
    --admin-sidebar: #1a1f2e;
    --admin-sidebar-hover: #252b3d;
    --admin-ink: #1a1a1a;
    --admin-ink-soft: #4a5568;
    --admin-muted: #94a3b8;
    --admin-line: #e5e7eb;
    --admin-accent: #c0392b;
    --admin-accent-dark: #962d22;
    --admin-success: #16a34a;
    --admin-warning: #ea580c;
    --admin-danger: #dc2626;
    --admin-info: #2563eb;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.08);
    
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--admin-bg);
    color: var(--admin-ink);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--admin-accent); text-decoration: none; }
a:hover { color: var(--admin-accent-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.1) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    pointer-events: none;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 152, 90, 0.08) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    pointer-events: none;
}

.login-card {
    background: var(--admin-surface);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-mark {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-dark));
    color: white;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(192, 57, 43, 0.3);
}

.login-logo h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.login-logo h1 em { color: var(--admin-accent); font-style: italic; }

.login-logo p {
    color: var(--admin-muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--admin-sidebar);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.sidebar-logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    border-radius: 8px;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.sidebar-logo-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
}

.sidebar-logo-title em { color: var(--admin-accent); font-style: italic; }

.sidebar-logo-sub {
    font-size: 10px;
    color: var(--admin-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--admin-muted);
    padding: 16px 12px 8px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #cbd5e1;
    border-radius: var(--radius);
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: var(--admin-sidebar-hover);
    color: white;
}

.sidebar-nav a.active {
    background: var(--admin-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.sidebar-nav a i {
    width: 18px;
    font-size: 15px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.admin-main {
    background: var(--admin-bg);
    min-height: 100vh;
}

.admin-topbar {
    background: var(--admin-surface);
    padding: 16px 32px;
    border-bottom: 1px solid var(--admin-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title h1 {
    font-size: 22px;
    color: var(--admin-ink);
}

.topbar-title p {
    font-size: 13px;
    color: var(--admin-muted);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--admin-bg);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--admin-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
}

.admin-content {
    padding: 32px;
}

/* ============================================
   STATS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--admin-surface);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--admin-line);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--admin-accent);
}

.stat-card.success::before { background: var(--admin-success); }
.stat-card.warning::before { background: var(--admin-warning); }
.stat-card.info::before { background: var(--admin-info); }

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(192, 57, 43, 0.1);
    color: var(--admin-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.stat-card.success .stat-icon { background: rgba(22, 163, 74, 0.1); color: var(--admin-success); }
.stat-card.warning .stat-icon { background: rgba(234, 88, 12, 0.1); color: var(--admin-warning); }
.stat-card.info .stat-icon { background: rgba(37, 99, 235, 0.1); color: var(--admin-info); }

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--admin-ink);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--admin-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================
   CARDS / PANELS
   ============================================ */

.panel {
    background: var(--admin-surface);
    border-radius: 14px;
    border: 1px solid var(--admin-line);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-title {
    font-size: 18px;
    color: var(--admin-ink);
    font-family: var(--font-display);
    font-weight: 700;
}

.panel-body { padding: 24px; }
.panel-body.no-padding { padding: 0; }

/* ============================================
   FORMS
   ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--admin-ink);
    margin-bottom: 6px;
}

.form-group label .required { color: var(--admin-accent); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--admin-line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    background: var(--admin-surface);
    color: var(--admin-ink);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-help {
    font-size: 12px;
    color: var(--admin-muted);
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input { width: 18px; height: 18px; cursor: pointer; }
.checkbox-group label { margin: 0; cursor: pointer; }

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--admin-line);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--admin-ink);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }

.btn-primary { background: var(--admin-accent); }
.btn-primary:hover { background: var(--admin-accent-dark); }

.btn-success { background: var(--admin-success); }
.btn-warning { background: var(--admin-warning); }
.btn-danger { background: var(--admin-danger); }
.btn-info { background: var(--admin-info); }

.btn-outline {
    background: transparent;
    color: var(--admin-ink);
    border: 1px solid var(--admin-line);
}

.btn-outline:hover { background: var(--admin-bg); color: var(--admin-ink); }

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-icon { padding: 8px 10px; }

/* ============================================
   TABLES
   ============================================ */

.table-wrapper { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--admin-bg);
    text-align: left;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--admin-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--admin-line);
}

.table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--admin-line);
    font-size: 13px;
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: var(--admin-bg); }

.table-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--admin-bg);
}

.table-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--admin-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-muted);
}

.table-name {
    font-weight: 600;
    color: var(--admin-ink);
}

.table-sub {
    font-size: 12px;
    color: var(--admin-muted);
    margin-top: 2px;
}

.table-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-success { background: rgba(22, 163, 74, 0.12); color: var(--admin-success); }
.badge-warning { background: rgba(234, 88, 12, 0.12); color: var(--admin-warning); }
.badge-danger { background: rgba(220, 38, 38, 0.12); color: var(--admin-danger); }
.badge-info { background: rgba(37, 99, 235, 0.12); color: var(--admin-info); }
.badge-muted { background: var(--admin-bg); color: var(--admin-muted); }

/* ============================================
   ALERTS / FLASH
   ============================================ */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
}

.alert i { font-size: 16px; }
.alert-success { background: rgba(22, 163, 74, 0.1); color: #15803d; border: 1px solid rgba(22, 163, 74, 0.2); }
.alert-error { background: rgba(220, 38, 38, 0.1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.2); }
.alert-warning { background: rgba(234, 88, 12, 0.1); color: #c2410c; border: 1px solid rgba(234, 88, 12, 0.2); }

/* ============================================
   IMAGE UPLOAD
   ============================================ */

.image-upload {
    border: 2px dashed var(--admin-line);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--admin-bg);
}

.image-upload:hover { border-color: var(--admin-accent); background: rgba(192, 57, 43, 0.04); }

.image-upload i { font-size: 36px; color: var(--admin-muted); margin-bottom: 10px; }
.image-upload p { color: var(--admin-ink-soft); font-size: 14px; }
.image-upload .hint { font-size: 12px; color: var(--admin-muted); margin-top: 4px; }
.image-upload input { display: none; }

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background: var(--admin-bg);
    border: 1px solid var(--admin-line);
}

.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.image-preview-remove:hover { background: var(--admin-danger); }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--admin-muted);
}

.empty-state i { font-size: 48px; color: var(--admin-line); margin-bottom: 16px; }
.empty-state h3 { color: var(--admin-ink); margin-bottom: 6px; font-size: 18px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 1fr; }
    .sidebar { position: relative; height: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-content { padding: 20px; }
    .admin-topbar { padding: 14px 20px; }
}

/* ============================================
   GALERIA & ICON BUTTONS (për business-edit)
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-delete-img {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s;
}

.btn-delete-img:hover { transform: scale(1.12); background: #a33223; }

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #f5f5f5;
    color: var(--admin-ink, #2c2c2c);
    text-decoration: none;
    margin-right: 4px;
    transition: all 0.15s;
}

.btn-icon:hover { background: #ebebeb; }
.btn-icon-danger { background: #fdecea; color: #c0392b; }
.btn-icon-danger:hover { background: #f8d5d0; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert-error { background: #fdecea; border-color: #f5c6c2; color: #842029; }
.alert-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }

code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c0392b;
}
