/* assets/css/style.css */

:root {
    /* Light Theme (Default) */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #9333ea;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-header: rgba(255, 255, 255, 0.8);
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);
    --border-radius: 16px;
    --danger: #ef4444;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #2dd4bf;
    --primary-hover: #5eead4;
    --secondary-color: #facc15;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --bg-main: #0b1120;
    --bg-card: rgba(17, 24, 39, 0.86);
    --bg-header: rgba(11, 17, 32, 0.92);
    --border-color: rgba(148, 163, 184, 0.22);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius) - 4px);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -8px;
    left: 0;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
    font-size: 0.95rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.25);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
}

.btn-outline {
    background: white;
    border: 2px solid #3b82f6;
    color: #1d4ed8;
    box-shadow: none;
}

.btn-outline:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    transform: translateY(-2px);
}

/* FORCE SPACIOUS BUTTONS */
.main-nav ul li a.btn-login, 
.main-nav ul li a.btn-signup, 
.main-nav ul li a.btn-profile, 
.main-nav ul li a.btn-dashboard {
    padding: 0.8rem 2.8rem !important;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
}

/* Dashboard Button - Professional Purple */
.btn-dashboard {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
}

/* Login Button - Indigo */
.btn-login {
    color: #4338ca;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-login:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

/* Sign Up Button - Emerald Green */
.btn-signup {
    color: #059669;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-signup:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

/* Filter Button - Professional Look */
.btn-filter {
    padding: 0.8rem 2.5rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: white !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px; /* Matches form input height */
    font-size: 0.95rem;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35) !important;
    filter: brightness(1.1);
}

.btn-filter:active {
    transform: translateY(0);
}
.btn-profile {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.btn-profile:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.23);
}

.btn-logout-header {
    background: #fff1f2;
    color: #e11d48 !important;
    border: 1px solid #ffe4e6;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-logout-header:hover {
    background: #ffe4e6;
    border-color: #fecdd3;
    transform: scale(1.05);
}

/* Header & Nav (Glassmorphism) */
.site-header {
    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}

.logo i {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a:not(.btn-outline-small)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:not(.btn-outline-small):hover {
    color: var(--text-main);
}

.main-nav a:not(.btn-outline-small):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: rgba(var(--primary-color), 0.1);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 1024px) {
    .menu-checkbox:checked~.main-nav {
        display: block !important;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-main);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        z-index: 1100;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }

    .mobile-menu-btn {
        display: block !important;
        z-index: 1200;
    }
}

/* Footer */
.site-footer {
    background-color: #020617;
    /* Ultra dark slate */
    color: #94a3b8;
    padding: 4rem 0 2rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact h4,
.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Forms (Glassmorphic) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Premium Cards */
.card {
    background-color: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.8);
}

.card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-radius: calc(var(--border-radius) - 4px) calc(var(--border-radius) - 4px) 0 0;
}

.ca-thumb {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
    background: #f8fafc;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 4px) calc(var(--border-radius) - 4px) 0 0;
}

.ca-thumb-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 0;
}

.btn-post-telegram,
.btn-telegram,
.btn-telegram-home {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    box-shadow: 0 4px 15px rgba(234, 179, 8, 0.25);
    border: none;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-post-telegram:hover,
.btn-telegram:hover,
.btn-telegram-home:hover {
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.35);
    color: #111827;
}

.post-headline-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: -0.5rem 0 2rem;
}

.btn-post-telegram-small {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    border-radius: 999px;
}

.post-share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.post-share-buttons span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.post-share-buttons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.post-share-buttons a.share-facebook {
    background: #1877f2;
}

.post-share-buttons a.share-x {
    background: #000000;
}

.post-share-buttons a.share-whatsapp {
    background: #25d366;
}

.post-share-buttons a.share-telegram {
    background: #229ed9;
}

.post-author-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.post-author-card img,
.post-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.post-author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e7ff;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.post-author-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.post-author-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.post-author-card p {
    margin: 0;
    color: var(--text-muted);
}

.card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.card-text {
    margin-bottom: 2rem;
    flex: 1;
    color: var(--text-muted);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* Premium Hero Section */
.hero {
    position: relative;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 24px;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 50%, #f3e8ff 100%);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), var(--shadow-soft);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxyZWN0IHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgZmlsbD0ibm9uZSIvPgo8Y2lyY2xlIGN4PSIyIiBjeT0iMiIgcj0iMSIgZmlsbD0icmdiYSgwLDAsMCwwLjA1KSIvPgo8L3N2Zz4=');
    opacity: 0.5;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 650px;
    margin: 0.5rem auto 0;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Admin Specific */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background-color: #0f172a;
    color: white;
    padding: 2.5rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar-header {
    padding: 0 2.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.admin-sidebar-header h3 {
    margin-bottom: 0.25rem;
}

.admin-sidebar-nav ul {
    list-style: none;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 2.5rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.03);
    color: white;
    border-left-color: var(--primary-color);
}

.admin-sidebar-nav a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
}

.admin-main {
    flex: 1;
    padding: 3rem;
    background-color: var(--bg-main);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--glass-blur);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

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

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: white;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.stat-info p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Premium Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

th,
td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: rgba(248, 250, 252, 0.8);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.badge-primary {
    background: #e0e7ff;
    color: #4338ca;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.pagination .active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.search-bar input {
    flex: 1;
    border: none;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
}

.search-bar input:focus {
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

/* Tools specifically */
.tool-card {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 4px solid var(--primary-color);
}

.tool-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .admin-sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .admin-sidebar-nav a {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .admin-sidebar-nav a.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .admin-main {
        padding: 1.5rem;
    }

    .ca-thumb {
        height: auto;
        padding: 0;
    }
}

/* CMS Content Formatting (For Pages Edited via Admin) */
.cms-content {
    line-height: 1.8;
}

.cms-content p {
    margin-bottom: 1.5rem;
}

.cms-content ul,
.cms-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem !important;
    list-style-position: outside !important;
}

.cms-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.cms-content h2,
.cms-content h3 {
    margin: 2.5rem 0 1.25rem 0;
    color: var(--text-main);
    font-weight: 700;
}
