:root {
    --admin-bg: #050505;
    --admin-card-bg: #0a0a0a;
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-accent: #fff;
    --admin-text: #888;
    --admin-text-muted: #555;
    --admin-danger: #ff4757;
    --admin-success: #2ed573;
    --admin-warning: #ffa502;
    --admin-info: #1e90ff;
    --font-main: "Google Sans Flex", sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--admin-bg);
    color: #fff;
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Login Screen */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0d0d0d 0%, #000 100%);
}

.login-card {
    background: var(--admin-card-bg);
    padding: 60px;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--admin-border);
    text-align: center;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-card h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.login-subtitle {
    color: var(--admin-text);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--admin-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i,
.input-with-icon svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-border);
    padding: 16px 20px;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.input-with-icon input {
    padding-left: 50px;
}

.login-btn {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 20px 30px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.15);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    width: 300px;
    height: 100vh;
    position: fixed;
    background: #080808;
    border-right: 1px solid var(--admin-border);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.4rem;
    font-weight: 1000;
    margin-bottom: 60px;
    padding: 0 10px;
}

.sidebar-logo i,
.sidebar-logo svg {
    color: #fff;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    color: var(--admin-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    background: #fff;
    color: #000;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.unread-badge {
    position: absolute;
    right: 20px;
    background: var(--admin-danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 800;
}

.logout-btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: rgba(255, 71, 87, 0.05);
    border: 1px solid rgba(255, 71, 87, 0.15);
    color: var(--admin-danger);
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    justify-content: center;
}

.logout-btn:hover {
    background: var(--admin-danger);
    color: #fff;
    transform: translateY(-3px);
}

/* Dashboard Main */
.dashboard-main {
    margin-left: 300px;
    padding: 60px;
    width: calc(100% - 300px);
}

.tab-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--admin-text);
}

/* Dashboard Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    padding: 35px;
    border-radius: 28px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--admin-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 1000;
    color: #fff;
    line-height: 1;
}

.stat-trend {
    font-size: 0.85rem;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trend-up {
    color: var(--admin-success);
}

.trend-down {
    color: var(--admin-danger);
}

/* Unified Admin Cards */
.admin-card {
    padding: 40px;
    border-radius: 32px;
    margin-bottom: 40px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.card-top h3 {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.add-btn {
    padding: 14px 28px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* List Items (Blogs & Contacts) */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--admin-text);
    font-size: 0.85rem;
}

.badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-new {
    background: var(--admin-info);
    color: #fff;
}

.badge-contacted {
    background: var(--admin-warning);
    color: #000;
}

.badge-converted {
    background: var(--admin-success);
    color: #000;
}

.badge-priority-high {
    color: var(--admin-danger);
    border: 1px solid var(--admin-danger);
}

/* Contact Specific Styles */
.contact-item {
    position: relative;
}

.contact-item.unread {
    border-left: 4px solid #fff;
}

.contact-preview {
    margin-top: 15px;
    color: var(--admin-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Settings Form */
.premium-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.full-width {
    grid-column: 1 / -1;
}

.save-btn {
    padding: 16px 32px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}

.modal-content {
    background: #0d0d0d;
    padding: 50px;
    border-radius: 32px;
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--admin-border);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 1000;
    letter-spacing: -1px;
}

/* Responsive Grid for Modal */
.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.modal-form-grid .full {
    grid-column: span 2;
}

/* Status Colors for Select */
select option {
    background: #111;
    color: #fff;
}

/* Animations using pure CSS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Dashboard Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    opacity: 0.5;
}

.empty-state i,
.empty-state svg {
    margin-bottom: 20px;
}

/* Media Queries */
@media (max-width: 1100px) {
    .dashboard-sidebar {
        width: 80px;
        padding: 40px 15px;
    }

    .sidebar-logo span,
    .nav-item span {
        display: none;
    }

    .dashboard-main {
        margin-left: 80px;
        width: calc(100% - 80px);
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: 40px 20px;
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
}