/* Blog Styles */

/* Legal Page Styles */
.legal-page {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-page h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-page p {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}

.legal-page ul, .legal-page ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-color);
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Navigation */
.main-nav {
    background: var(--white);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: var(--bg-color);
}

/* Admin Login Page */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.admin-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 0;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-icon svg {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6366f1 100%);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.login-card h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-card .form-group {
    margin-bottom: 1.5rem;
}

.login-card .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.login-card .form-group label svg {
    color: var(--primary-color);
}

.login-card .form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.login-card .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-card .form-group input::placeholder {
    color: #9ca3af;
}

.login-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.login-card .btn svg {
    width: 20px;
    height: 20px;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-info {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.login-info strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
}

.login-info .credential {
    display: block;
    margin: 0.25rem 0;
}

.login-info code {
    background: var(--bg-color);
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.back-link:hover {
    background: var(--bg-color);
    transform: translateX(-3px);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #991b1b;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.alert-error svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Admin Dashboard Layout */
.admin-dashboard-body {
    margin: 0;
    padding: 0;
    background: #f8fafc;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-logo svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-item.active::before {
    opacity: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

.nav-item.logout {
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.nav-item.logout.active {
    background: rgba(239, 68, 68, 0.3);
}

.sidebar-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: #f8fafc;
}

/* Top Bar */
.admin-topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topbar-right {
    display: flex;
    gap: 1rem;
}

.topbar-right .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.topbar-right .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topbar-right .btn svg {
    width: 18px;
    height: 18px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 2.5rem;
}

.stat-card {
    width: 100%;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px dashed #667eea;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.posts {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.published {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-icon.drafts {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-icon.views {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Area */
.admin-content {
    padding: 0 2.5rem 2.5rem;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 0;
}

/* Tabs - Removed, using sidebar navigation instead */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Cards */
.categories-section {
    margin-top: 2rem;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.categories-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.categories-list {
    display: grid;
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.category-card-header {
    margin-bottom: 1rem;
}

.category-card-header h3 {
    color: var(--text-color);
    margin: 0;
}

.category-card-body {
    margin-bottom: 1rem;
}

.category-card-body p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.category-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.category-meta code {
    background: var(--bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.category-card-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Removed old dashboard-header styles - using new layout */

.dashboard-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
}

.search-box {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box .btn {
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
}

.filter-box {
    min-width: 200px;
}

.filter-box select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
    cursor: pointer;
}

.filter-box select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Post Form */
.post-form-container {
    margin-bottom: 2rem;
}

.post-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
}

.post-form-card h2 {
    margin-bottom: 2rem;
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Quill Editor Styles */
#quillEditor {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: var(--white);
}

#quillEditor:focus-within {
    border-color: var(--primary-color);
}

.ql-toolbar {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid var(--border-color) !important;
    background: var(--bg-color) !important;
}

.ql-container {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
}

.ql-editor {
    min-height: 400px;
    line-height: 1.6;
    color: #000000;
}

.ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

/* Post Content Display Styles */
.post-content {
    padding: 2.5rem;
    line-height: 1.8;
    color: #000000;
    font-size: 1.125rem;
}

.post-content p {
    color: #000000;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #000000;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.75rem; }
.post-content h4 { font-size: 1.5rem; }
.post-content h5 { font-size: 1.25rem; }
.post-content h6 { font-size: 1.125rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-hover);
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.post-content code {
    background: var(--bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
}

.post-content pre {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.post-content table th {
    background: var(--bg-color);
    font-weight: 600;
}

/* Image Upload Styles */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.upload-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.upload-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.upload-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.upload-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.image-upload-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    max-width: 500px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-image-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
}

.upload-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    width: 0%;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-block {
    width: 100%;
}

/* Posts List */
.posts-section {
    margin-top: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.posts-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.posts-list {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.post-card-header h3 {
    flex: 1;
    color: var(--text-color);
    margin: 0;
}

.post-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-status.published {
    background: #d1fae5;
    color: #065f46;
}

.post-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.post-card-body {
    margin-bottom: 1rem;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.post-card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.post-card-actions .btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-card-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3d8f 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-view {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Blog Page */
.blog-page {
    padding: 2rem 0;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

.blog-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Blog List - 2 Column Grid */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-color);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.blog-card-title {
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.pagination-number:hover:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
    color: #6b7280;
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Single Blog Post */
.blog-post-page {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.single-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--bg-color);
    display: block;
    margin: 0;
    padding: 0;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-header {
    padding: 2.5rem;
    border-bottom: 2px solid var(--border-color);
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-date,
.post-views {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.post-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.post-author {
    color: var(--text-light);
    font-size: 1.125rem;
}

.post-content {
    padding: 2.5rem;
    line-height: 1.8;
    color: #000000;
    font-size: 1.125rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-tags {
    padding: 0 2.5rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.post-tags strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.post-tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.9375rem;
}

.post-footer {
    padding: 2rem 2.5rem;
    border-top: 2px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 80px;
        transform: translateX(0);
    }

    .admin-sidebar .sidebar-logo span,
    .admin-sidebar .nav-item span {
        display: none;
    }

    .admin-sidebar .sidebar-logo {
        justify-content: center;
    }

    .admin-main {
        margin-left: 80px;
    }

    .admin-topbar {
        padding: 1rem;
    }
}

/* Settings Section */
.settings-section {
    padding: 2rem 0;
}

.settings-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.settings-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.settings-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.settings-card .form-group {
    margin-bottom: 1.5rem;
}

.settings-card .form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Social Media Links Card */
.social-links-card {
    position: relative;
    overflow: hidden;
}

.social-links-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1877f2 0%, #ff0000 50%, #0077b5 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links-card:hover::before {
    opacity: 1;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.settings-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.settings-icon-wrapper svg {
    color: white;
    width: 24px;
    height: 24px;
}

.settings-card-header h3 {
    margin: 0 0 0.5rem 0;
}

.settings-card-header .settings-description {
    margin: 0;
}

/* Social Links Form */
.social-links-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-input-group {
    position: relative;
}

.social-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-input-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.social-input-wrapper:hover {
    border-color: #d1d5db;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-input-wrapper:focus-within {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.social-input-wrapper:focus-within::before {
    background: #667eea;
}

.social-input-wrapper.facebook-input:focus-within::before {
    background: #1877f2;
}

.social-input-wrapper.youtube-input:focus-within::before {
    background: #ff0000;
}

.social-input-wrapper.linkedin-input:focus-within::before {
    background: #0077b5;
}

.social-input-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.facebook-input .social-input-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0d5fbd 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.youtube-input .social-input-icon {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.linkedin-input .social-input-icon {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.3);
}

.social-input-wrapper:hover .social-input-icon {
    transform: scale(1.05);
}

.social-input-wrapper .form-group {
    flex: 1;
    margin: 0;
}

.social-input-wrapper .form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.social-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.social-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.social-input::placeholder {
    color: #9ca3af;
}

.facebook-input .social-input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.youtube-input .social-input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.linkedin-input .social-input:focus {
    border-color: #0077b5;
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.btn-save-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-save-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-save-social svg {
    width: 18px;
    height: 18px;
}

.form-actions {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .social-input-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .social-input-icon {
        width: 40px;
        height: 40px;
    }
}

/* About Page Sections Admin */
.about-sections-section {
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.section-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.section-description {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.about-sections-list {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-section-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.about-section-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: #667eea;
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    padding-bottom: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.section-card-info {
    flex: 1;
}

.section-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.section-type-badge svg {
    width: 14px;
    height: 14px;
}

.section-type-welcome {
    background: #fef3c7;
    color: #92400e;
}

.section-type-why_choose {
    background: #dbeafe;
    color: #1e40af;
}

.section-type-expertise {
    background: #e0e7ff;
    color: #3730a3;
}

.section-type-services {
    background: #d1fae5;
    color: #065f46;
}

.section-type-about_me {
    background: #fce7f3;
    color: #9f1239;
}

.section-type-testimonials {
    background: #f3e8ff;
    color: #6b21a8;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.section-title-group h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.section-key {
    color: var(--text-light);
    font-size: 0.8125rem;
    font-family: monospace;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.section-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.section-card-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.section-preview-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.section-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-content-preview {
    flex: 1;
}

.section-content-preview p {
    color: var(--text-light);
    margin: 0 0 1rem 0;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.section-buttons-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.button-preview {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #667eea;
    color: white;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.section-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-order {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-link:hover {
    color: #5568d3;
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-state svg {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-secondary {
    background: #e5e7eb;
    color: #6b7280;
}

.no-sections {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    background: var(--bg-color);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.section-item-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.section-item-card .form-group {
    margin-bottom: 1rem;
}

.section-item-card .form-group:last-of-type {
    margin-bottom: 0.5rem;
}

.section-item-card label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-item-card input,
.section-item-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.section-item-card textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
    }

    .section-card-header {
        flex-direction: column;
    }

    .section-card-content {
        flex-direction: column;
    }

    .section-card-content img {
        max-width: 100%;
    }
}

/* About Section Form Enhanced Styles */
.about-section-form-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.form-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-header-icon svg {
    color: white;
    width: 24px;
    height: 24px;
}

.form-card-header h2 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.75rem;
}

.form-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.about-section-form {
    padding: 2rem;
}

.form-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.form-section-title svg {
    color: #667eea;
    width: 18px;
    height: 18px;
}

.form-label-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-label-with-icon svg {
    color: #667eea;
    width: 16px;
    height: 16px;
}

.form-input-enhanced,
.form-textarea-enhanced,
.form-select-enhanced {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input-enhanced:focus,
.form-textarea-enhanced:focus,
.form-select-enhanced:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea-enhanced {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-select-enhanced {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
}

.input-with-preview {
    position: relative;
}

.image-preview {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    max-width: 300px;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.button-config-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.button-config-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.button-config-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.button-config-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.button-config-header svg {
    color: #667eea;
    width: 18px;
    height: 18px;
}

.checkbox-label-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label-enhanced:hover {
    border-color: #667eea;
    background: #f9fafb;
}

.checkbox-label-enhanced input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label-enhanced input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label-enhanced input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.checkbox-text small {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

.section-items-list {
    margin-bottom: 1rem;
}

.btn-add-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    font-weight: 600;
}

.btn-add-item svg {
    width: 18px;
    height: 18px;
}

.btn-save-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save-section svg {
    width: 18px;
    height: 18px;
}

.btn-save-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Enhanced Section Item Cards */
.section-item-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.section-item-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.section-item-card .form-group {
    margin-bottom: 1rem;
}

.section-item-card .form-group:last-of-type {
    margin-bottom: 0.75rem;
}

.section-item-card label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-item-card input,
.section-item-card textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.section-item-card input:focus,
.section-item-card textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.section-item-card textarea {
    resize: vertical;
    min-height: 80px;
}

.section-item-card .btn-danger {
    margin-top: 0.5rem;
}

/* Responsive */
/* Media Upload Styles */
.media-upload-container {
    margin-top: 0.5rem;
}

.media-upload-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.upload-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.upload-option input[type="radio"] {
    display: none;
}

.upload-option span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.upload-option:hover {
    background: #f9fafb;
}

.upload-option input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.upload-option:has(input[type="radio"]:checked) {
    background: #f3f4f6;
    border-color: #667eea;
}

.media-upload-section {
    margin-bottom: 1rem;
}

.btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    animation: progressAnimation 2s infinite;
    transition: width 0.3s ease;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.image-preview,
.video-preview {
    position: relative;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    max-width: 100%;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

.video-preview {
    background: #000;
}

.video-preview video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
}

.remove-media-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.remove-media-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.remove-media-btn svg {
    width: 18px;
    height: 18px;
}

/* Drag and Drop Zones */
.drag-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone:hover {
    border-color: #667eea;
    background: #f3f4f6;
}

.drag-drop-zone.drag-over {
    border-color: #667eea;
    background: #eef2ff;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-zone {
    cursor: pointer;
}

.drag-drop-content svg {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.drag-drop-text {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
    font-size: 1rem;
}

.drag-drop-text strong {
    color: #667eea;
}

.drag-drop-text .btn-link {
    color: #667eea;
    text-decoration: underline;
    pointer-events: all;
    cursor: pointer;
}

.drag-drop-content small {
    display: block;
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.content-editor-wrapper {
    position: relative;
}

.content-helper {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.content-helper .form-help {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    color: #1e40af;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.content-helper svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.content-helper code {
    background: rgba(59, 130, 246, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.875em;
}

@media (max-width: 768px) {
    .form-card-header {
        flex-direction: column;
        text-align: center;
    }

    .button-config-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 1.25rem;
    }
    
    .media-upload-options {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .topbar-right {
        width: 100%;
        flex-direction: column;
    }

    .topbar-right .btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .stat-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .admin-content {
        padding: 0 1rem 1rem;
    }

    .main-nav .container {
        justify-content: center;
    }

    .blog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
        width: 100%;
    }

    .filter-box {
        width: 100%;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }

    .blog-card-image {
        height: 200px;
    }

    .post-featured-image {
        height: 250px;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .post-header {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 100%;
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .login-card h1 {
        font-size: 1.75rem;
    }

    .login-icon svg {
        width: 56px;
        height: 56px;
        padding: 0.75rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .post-card-header {
        flex-direction: column;
    }

    .post-card-actions {
        flex-direction: column;
    }

    .post-card-actions .btn {
        width: 100%;
    }
}

