/* Admin Panel Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.6;
}

/* Admin Header */
.admin-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.admin-logo h1 {
    color: #4f46e5;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-logo i {
    margin-right: 0.5rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.back-to-site {
    background: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.back-to-site:hover {
    background: #3730a3;
}

.logout-btn {
    background: #ef4444;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-left: 0.5rem;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background: #1f2937;
    overflow-y: auto;
    z-index: 999;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: #374151;
    color: #4f46e5;
    border-left-color: #4f46e5;
}

.sidebar-nav li.active a {
    background: #f59e0b;
    color: white;
    border-left-color: #f59e0b;
}

.sidebar-nav i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Admin Main Content */
.admin-main {
    margin-left: 250px;
    margin-top: 80px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.admin-section {
    display: none !important;
}

.admin-section.active {
    display: block !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-header h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
}

.section-header p {
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #3730a3;
}

.btn-secondary {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-edit {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background 0.3s ease;
}

.btn-edit:hover {
    background: #059669;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete:hover {
    background: #dc2626;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Dashboard Content */
.dashboard-content {
    margin-top: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.recent-posts {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recent-posts h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.post-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.post-status.published {
    background: #d1fae5;
    color: #065f46;
}

.post-status.draft {
    background: #fef3c7;
    color: #92400e;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    margin-top: 0.25rem;
}

.post-info h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.post-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

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

/* Posts Table */
.posts-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th {
    background: #f8fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.posts-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.published {
    background: #dcfce7;
    color: #166534;
}

.status.draft {
    background: #fef3c7;
    color: #92400e;
}

/* Forms */
.post-form,
.settings-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
}

/* Post Editor Styles */
.post-editor {
    max-width: 1000px;
    margin: 0 auto;
}

.editor-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.editor-section h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f59e0b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-section h3 i {
    color: #f59e0b;
}

/* Image Upload Styles */
.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.image-upload-area:hover {
    border-color: #f59e0b;
}

.upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.upload-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-option input[type="radio"] {
    margin: 0;
}

.upload-option label {
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.upload-method {
    margin-bottom: 1rem;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.btn-remove-image:hover {
    background: #dc2626;
}

/* Simple form styles */
.form-group input[type="url"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="url"]:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Categories */
.categories-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.category-item:last-child {
    border-bottom: none;
}

.category-info h4 {
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.category-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

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

/* AdSense Settings */
.adsense-settings {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.ad-positions {
    display: grid;
    gap: 2rem;
}

.ad-position {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.ad-position h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.ad-preview {
    margin-bottom: 1rem;
}

.ad-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    color: #6b7280;
    margin: 0 auto;
}

.ad-placeholder.vertical {
    width: 300px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.ad-controls input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.adsense-code {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* AdSense Yönetimi Stilleri */
.adsense-settings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-group {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.setting-group h3 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 1.25rem;
}

.ad-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.ad-position {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    background: #f8fafc;
}

.ad-position h4 {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1rem;
}

.ad-preview {
    margin-bottom: 1rem;
}

.ad-placeholder {
    background: #e2e8f0;
    border: 2px dashed #cbd5e1;
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.ad-placeholder.vertical {
    width: 150px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-placeholder.mobile {
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-placeholder.content {
    width: 200px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ad-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.adsense-code {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
}

.stat-value {
    font-weight: 600;
    color: #1e293b;
}

.form-help {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Kategori Yönetimi Stilleri */
.category-form {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-header h3 {
    margin: 0;
    color: #1e293b;
}

.categories-list {
    display: grid;
    gap: 1rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.category-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.category-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-details h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1rem;
}

.category-details p {
    margin: 0 0 0.25rem 0;
    color: #64748b;
    font-size: 0.875rem;
}

.category-details small {
    color: #94a3b8;
    font-size: 0.75rem;
}

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

.category-actions button {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-actions .btn-edit {
    background: #fef3c7;
    color: #f59e0b;
}

.category-actions .btn-edit:hover {
    background: #fde68a;
}

.category-actions .btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.category-actions .btn-delete:hover {
    background: #fecaca;
}

/* Ayarlar Yönetimi Stilleri */
.settings-tabs {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tab-btn.active {
    background: white;
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

.settings-tab {
    display: none;
    padding: 2rem;
}

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

.settings-form {
    max-width: 600px;
}

/* Logo Yükleme Stilleri */
.logo-upload-options {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.upload-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.upload-tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-tab-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.upload-tab-btn.active {
    background: white;
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

.upload-tab {
    display: none;
    padding: 1.5rem;
}

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

.logo-upload {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.logo-upload input {
    flex: 1;
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.file-upload-area:hover {
    border-color: #4f46e5;
    background: #f0f4ff;
}

.upload-placeholder {
    color: #64748b;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.upload-placeholder small {
    color: #94a3b8;
}

.btn-file-select {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-file-select:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-details i {
    color: #4f46e5;
    font-size: 1.25rem;
}

.file-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.file-name {
    font-weight: 500;
    color: #1e293b;
}

.file-size {
    font-size: 0.875rem;
    color: #64748b;
}

.btn-remove {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: #fecaca;
}

.logo-preview {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    text-align: center;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.color-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-input-group input[type="color"] {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.color-input-group input[type="text"] {
    flex: 1;
    font-family: monospace;
    font-size: 0.875rem;
}

/* CSS Değişkenleri */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #f59e0b;
    --font-family: 'Inter', sans-serif;
}

/* Tema uygulama */
body {
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, black);
}

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

.sidebar-nav li.active a {
    color: var(--primary-color);
}

.stat-icon {
    background: var(--primary-color);
}

.status.published {
    background: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-nav {
        padding: 1rem;
    }

    .admin-main {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .posts-table table {
        min-width: 600px;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .admin-logo h1 {
        font-size: 1.2rem;
    }

    .admin-user {
        flex-direction: column;
        gap: 0.5rem;
    }

    .back-to-site {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .post-item {
        flex-direction: column;
        gap: 1rem;
    }

    .post-actions {
        justify-content: center;
    }
    
    .ad-positions {
        grid-template-columns: 1fr;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-section.active {
    animation: fadeIn 0.3s ease-out;
}

/* Focus Styles */
.btn-primary:focus,
.btn-secondary:focus,
.btn-edit:focus,
.btn-delete:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Smooth Transitions */
.admin-section {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-nav a {
    transition: all 0.3s ease;
}

.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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