/* ===== GENEL ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #1e293b;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
}

.navbar .nav-link.active {
    font-weight: 700;
}

/* ===== FRONTEND KARTLAR ===== */
.card {
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important;
}

.card-title {
    letter-spacing: -0.01em;
}

/* ===== HERO ===== */
.hero-section .rounded-4 {
    border-radius: 1rem !important;
}

/* ===== BLOG CONTENT ===== */
.blog-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.blog-content h2, .blog-content h3, .blog-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    color: #6366f1;
    border: none;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: #6366f1;
    border-color: #6366f1;
}

.btn-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.btn-outline-primary {
    color: #6366f1;
    border-color: #6366f1;
}

.btn-outline-primary:hover {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* ===== FOOTER ===== */
footer {
    font-size: 0.9rem;
}

footer a:hover {
    color: #fff !important;
}

/* ========================================
   ADMIN PANEL - Modern Pastel Flat
   ======================================== */

:root {
    --admin-sidebar-bg: #1e293b;
    --admin-sidebar-hover: #334155;
    --admin-sidebar-active: #6366f1;
    --admin-body-bg: #f1f5f9;
    --admin-card-border: #e2e8f0;
    --admin-header-bg: #ffffff;
    --admin-text-primary: #1e293b;
    --admin-text-secondary: #64748b;
    --admin-pastel-indigo: #6366f1;
    --admin-pastel-emerald: #10b981;
    --admin-pastel-amber: #f59e0b;
    --admin-pastel-rose: #f43f5e;
    --admin-pastel-sky: #0ea5e9;
    --admin-pastel-indigo-light: #eef2ff;
    --admin-pastel-emerald-light: #ecfdf5;
    --admin-pastel-amber-light: #fffbeb;
    --admin-pastel-rose-light: #fff1f2;
    --admin-pastel-sky-light: #f0f9ff;
    --admin-radius: 12px;
    --admin-radius-sm: 8px;
}

/* Admin Wrapper */
#admin-wrapper {
    min-height: 100vh;
}

/* ===== ADMIN SIDEBAR ===== */
#admin-sidebar {
    background: var(--admin-sidebar-bg) !important;
    min-width: 260px;
    max-width: 260px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255,255,255,0.05);
}

#admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 0.5rem;
}

#admin-sidebar .sidebar-brand h4 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}

#admin-sidebar .sidebar-brand .brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--admin-pastel-indigo);
    border-radius: 50%;
    margin-right: 8px;
}

#admin-sidebar .nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    padding: 1.2rem 1.25rem 0.5rem;
}

#admin-sidebar .nav-link {
    color: rgba(255,255,255,0.6) !important;
    padding: 0.6rem 1.25rem;
    margin: 1px 0.75rem;
    border-radius: var(--admin-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#admin-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

#admin-sidebar .nav-link:hover {
    color: #fff !important;
    background: var(--admin-sidebar-hover);
}

#admin-sidebar .nav-link.active {
    color: #fff !important;
    background: var(--admin-pastel-indigo);
    font-weight: 600;
}

#admin-sidebar .sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

#admin-sidebar .sidebar-footer .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

#admin-sidebar .sidebar-footer .nav-link.logout-link {
    color: var(--admin-pastel-rose) !important;
}

#admin-sidebar .sidebar-footer .nav-link.logout-link:hover {
    background: rgba(244, 63, 94, 0.1);
}

/* ===== ADMIN CONTENT ===== */
#admin-content {
    background-color: var(--admin-body-bg);
    min-height: 100vh;
}

/* ===== ADMIN HEADER ===== */
.admin-header {
    background: var(--admin-header-bg);
    border-bottom: 1px solid var(--admin-card-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .page-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.admin-header .header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--admin-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.admin-header .header-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--admin-pastel-indigo-light);
    color: var(--admin-pastel-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

/* ===== ADMIN MAIN CONTENT ===== */
.admin-main {
    padding: 1.75rem 2rem;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: #fff;
    border: 1px solid var(--admin-card-border);
    border-radius: var(--admin-radius);
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--admin-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.indigo {
    background: var(--admin-pastel-indigo-light);
    color: var(--admin-pastel-indigo);
}

.stat-card .stat-icon.emerald {
    background: var(--admin-pastel-emerald-light);
    color: var(--admin-pastel-emerald);
}

.stat-card .stat-icon.sky {
    background: var(--admin-pastel-sky-light);
    color: var(--admin-pastel-sky);
}

.stat-card .stat-icon.amber {
    background: var(--admin-pastel-amber-light);
    color: var(--admin-pastel-amber);
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--admin-text-secondary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--admin-text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* ===== ADMIN CARDS ===== */
.admin-card {
    background: #fff;
    border: 1px solid var(--admin-card-border);
    border-radius: var(--admin-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.admin-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-card .card-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--admin-card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card .card-head h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin: 0;
}

/* ===== ADMIN TABLES ===== */
.admin-table {
    margin: 0;
    font-size: 0.875rem;
}

.admin-table thead th {
    background: var(--admin-body-bg);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--admin-text-secondary);
    border-bottom: 1px solid var(--admin-card-border);
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    color: var(--admin-text-primary);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

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

/* ===== BADGES ===== */
.badge-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3em 0.75em;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-status.active {
    background: var(--admin-pastel-emerald-light);
    color: var(--admin-pastel-emerald);
}

.badge-status.passive {
    background: #f1f5f9;
    color: var(--admin-text-secondary);
}

/* ===== ADMIN BUTTONS ===== */
.btn-admin {
    border-radius: var(--admin-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer;
}

.btn-admin-primary {
    background: var(--admin-pastel-indigo);
    color: #fff;
}

.btn-admin-primary:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.btn-admin-outline {
    background: transparent;
    border: 1px solid var(--admin-card-border);
    color: var(--admin-text-secondary);
}

.btn-admin-outline:hover {
    border-color: var(--admin-pastel-indigo);
    color: var(--admin-pastel-indigo);
    background: var(--admin-pastel-indigo-light);
}

.btn-admin-danger {
    background: transparent;
    border: 1px solid var(--admin-card-border);
    color: var(--admin-text-secondary);
}

.btn-admin-danger:hover {
    border-color: var(--admin-pastel-rose);
    color: var(--admin-pastel-rose);
    background: var(--admin-pastel-rose-light);
}

/* ===== ADMIN FORMS ===== */
.admin-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--admin-text-primary);
    margin-bottom: 0.35rem;
}

.admin-form .form-control,
.admin-form .form-select {
    border: 1px solid var(--admin-card-border);
    border-radius: var(--admin-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    color: var(--admin-text-primary);
}

.admin-form .form-control:focus,
.admin-form .form-select:focus {
    border-color: var(--admin-pastel-indigo);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.admin-form .form-control::placeholder {
    color: #cbd5e1;
}

.admin-form .form-text {
    font-size: 0.75rem;
    color: var(--admin-text-secondary);
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-card .login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .login-brand .brand-icon {
    width: 56px;
    height: 56px;
    background: var(--admin-pastel-indigo-light);
    color: var(--admin-pastel-indigo);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.login-card .login-brand h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--admin-text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.login-card .login-brand p {
    font-size: 0.85rem;
    color: var(--admin-text-secondary);
    margin: 0;
}

.login-card .btn-login {
    background: var(--admin-pastel-indigo);
    border: none;
    border-radius: var(--admin-radius-sm);
    padding: 0.7rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    transition: all 0.2s ease;
}

.login-card .btn-login:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
    color: #fff;
}

/* ===== ADMIN ALERTS ===== */
.admin-alert {
    border-radius: var(--admin-radius-sm);
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

/* ===== ADMIN LINKS - NO UNDERLINE ===== */
#admin-wrapper a {
    text-decoration: none !important;
}

/* ===== SUMMERNOTE OVERRIDES ===== */
.note-editor {
    border: 1px solid var(--admin-card-border) !important;
    border-radius: var(--admin-radius-sm) !important;
}

.note-editor .note-toolbar {
    background: var(--admin-body-bg) !important;
    border-bottom: 1px solid var(--admin-card-border) !important;
    border-radius: var(--admin-radius-sm) var(--admin-radius-sm) 0 0 !important;
}

.note-editor .note-editing-area .note-editable {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--admin-text-primary);
}

/* ===== NAV TABS (Admin Content) ===== */
.nav-tabs .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--admin-text-secondary);
    border: none;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    color: var(--admin-pastel-indigo);
    border-bottom: 2px solid var(--admin-pastel-indigo);
    background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #admin-sidebar {
        min-width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
    }

    #admin-wrapper {
        flex-direction: column;
    }

    .admin-main {
        padding: 1rem;
    }

    .admin-header {
        padding: 0.75rem 1rem;
    }
}
