/* hadmin/css/admin.css - Hanguits Modern Admin Stylesheet */
:root {
    --admin-sidebar: #0f172a;
    --admin-sidebar-hover: #1e293b;
    --admin-primary: #2563eb;
    --admin-primary-hover: #1d4ed8;
    --admin-accent: #d97706;
    --admin-bg: #f1f5f9;
    --admin-card: #ffffff;
    --admin-text: #1e293b;
    --admin-muted: #64748b;
    --admin-border: #e2e8f0;
    --radius: 8px;
}

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

body {
    font-family: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: var(--admin-sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header i {
    color: var(--admin-accent);
}

.sidebar-menu {
    list-style: none;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.sidebar-menu li a i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: var(--admin-sidebar-hover);
    color: #ffffff;
}

.sidebar-menu li a.active {
    background-color: var(--admin-primary);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Content Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

.admin-topbar {
    background-color: #ffffff;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--admin-border);
}

.admin-content {
    padding: 30px;
    flex-grow: 1;
}

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

.stat-card {
    background-color: var(--admin-card);
    border-radius: var(--radius);
    border: 1px solid var(--admin-border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.blue { background-color: #eff6ff; color: #2563eb; }
.stat-icon.amber { background-color: #fef3c7; color: #d97706; }
.stat-icon.green { background-color: #dcfce7; color: #16a34a; }
.stat-icon.purple { background-color: #f3e8ff; color: #9333ea; }

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--admin-text);
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--admin-muted);
}

/* Tables & Cards */
.admin-card {
    background-color: var(--admin-card);
    border-radius: var(--radius);
    border: 1px solid var(--admin-border);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 14px;
    background-color: #f8fafc;
    color: var(--admin-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--admin-border);
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success { background-color: #dcfce7; color: #15803d; }
.badge-secondary { background-color: #f1f5f9; color: #64748b; }

/* Buttons & Inputs */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background-color: var(--admin-primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--admin-primary-hover); }

.btn-accent { background-color: var(--admin-accent); color: #ffffff; }
.btn-accent:hover { background-color: #b45309; }

.btn-danger { background-color: #ef4444; color: #ffffff; }
.btn-danger:hover { background-color: #dc2626; }

.btn-secondary { background-color: #e2e8f0; color: #334155; }
.btn-secondary:hover { background-color: #cbd5e1; }

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--admin-border);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 18px;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
