/* Admin Login */
.admin-login {
    background: linear-gradient(135deg, #0047AB, #D72638);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 150px;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    border-color: #0047AB;
    outline: none;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #0047AB;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #003380;
}

.error-message {
    color: #D72638;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* Admin Panel Styles */
:root {
    --primary-color: #0047ab;
    --secondary-color: #d72638;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

.admin-body {
    background: linear-gradient(135deg, #f4f4f4 0%, #e3eafc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

/* Admin Panel Layout */
.admin-panel {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: white;
    color: #333;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.admin-logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.admin-logo img {
    width: 120px;
    height: auto;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #0047ab;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: #f8f9fa;
    color: #0047ab;
    padding-left: 30px;
}

/* Main Content */
.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: #f8f9fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 24px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-box h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 16px;
}

.stat-box p {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Dashboard Charts */
.dashboard-charts {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Dashboard Lists */
.dashboard-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-list h4 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 18px;
}

.dashboard-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-list li:last-child {
    border-bottom: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-color);
}

/* Buttons */
.add-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: #003d8f;
    transform: translateY(-2px);
}

/* Filters */
.blog-filters,
.contacts-filters,
.stats-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

input[type="text"],
select {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal h3 {
    margin: 0 0 20px 0;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background: var(--primary-color);
    color: white;
}

.form-actions button[type="button"] {
    background: var(--light-gray);
    color: var(--text-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.stats-chart {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-details {
    display: grid;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-color);
}

.stat-card p {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }

    .admin-sidebar .admin-logo img {
        width: 40px;
    }

    .admin-menu li a span {
        display: none;
    }

    .admin-content {
        margin-left: 60px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats,
    .dashboard-lists {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Action Buttons */
.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: var(--warning-color);
    color: white;
}

.delete-btn {
    background: var(--danger-color);
    color: white;
}

.view-btn {
    background: var(--primary-color);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Admin Panel Styles */
.admin-body {
    background: linear-gradient(135deg, #f4f4f4 0%, #e3eafc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.admin-container {
    width: 100%;
    max-width: 400px;
}

.admin-login {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-logo {
    width: 120px;
    margin: 0 auto 20px auto;
    display: block;
}

.login-header h1 {
    color: #333;
    font-size: 1.8rem;
    margin: 0;
    text-align: center;
}

.login-form {
    width: 100%;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #d72638;
    outline: none;
    box-shadow: 0 0 0 3px rgba(215,38,56,0.1);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d72638 0%, #0047ab 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Admin Dashboard Styles */
.admin-dashboard {
    display: none;
    padding: 20px;
}

.admin-content {
    margin-left: 270px;
    padding: 20px;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.admin-menu li {
    margin-bottom: 10px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-menu a:hover {
    background: #f4f4f4;
    color: #d72638;
}

.admin-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: #333;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #d72638 0%, #0047ab 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Blog Post Editor Styles */
.post-editor {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.editor-form .form-group {
    margin-bottom: 20px;
}

.editor-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.editor-form input[type="text"],
.editor-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.editor-form textarea {
    min-height: 200px;
    resize: vertical;
}

.editor-form input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.editor-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Post List Styles */
.post-list {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
}

.post-table th,
.post-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.post-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.post-table tr:hover {
    background: #f8f9fa;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.post-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #0047ab;
    color: white;
}

.delete-btn {
    background: #d72638;
    color: white;
}

.edit-btn:hover,
.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-menu li {
        margin: 0;
    }

    .admin-menu a {
        padding: 8px 12px;
    }

    .post-table {
        display: block;
        overflow-x: auto;
    }
}

.language-selector button.active::after {
    display: none !important;
    content: none !important;
}

/* Mevcut kod tamamen değişecek, yeni modern admin panel CSS'i eklenecek */

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f4f6fb;
    margin: 0;
    color: #222;
}

.admin-login {
    max-width: 350px;
    margin: 80px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 32px 28px 24px 28px;
    text-align: center;
}

.admin-login h2 {
    margin-bottom: 18px;
    color: #0047ab;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #dbe2ef;
    border-radius: 6px;
    font-size: 16px;
}

#login-form button {
    width: 100%;
    padding: 12px;
    background: #0047ab;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

#login-form button:hover {
    background: #2563eb;
}

.login-error {
    color: #d72638;
    margin-top: 10px;
    font-size: 15px;
}

.admin-panel {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0 0 32px 0;
}

.admin-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 12px 32px;
    border-bottom: 1px solid #e3e8ee;
}

.admin-panel header h1 {
    font-size: 2rem;
    color: #0047ab;
    margin: 0;
}

#logout-btn {
    background: #d72638;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#logout-btn:hover {
    background: #b91c1c;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 0 32px;
}

.panel-top h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #222;
}

#add-post-btn {
    background: #0047ab;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#add-post-btn:hover {
    background: #2563eb;
}

.blog-table {
    width: 92%;
    margin: 24px auto 0 auto;
    border-collapse: collapse;
    background: #f9fafb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.blog-table th, .blog-table td {
    padding: 14px 12px;
    text-align: left;
}

.blog-table th {
    background: #e3e8ee;
    color: #0047ab;
    font-weight: 600;
    font-size: 1rem;
}

.blog-table tr {
    border-bottom: 1px solid #e3e8ee;
}

.blog-table tr:last-child {
    border-bottom: none;
}

.blog-table td {
    font-size: 1rem;
    color: #222;
}

.action-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 5px;
    color: #0047ab;
    padding: 7px 12px;
    margin-right: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e0e7ef;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 24px 28px;
    min-width: 320px;
    max-width: 400px;
    margin: 60px auto;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.close-modal {
    position: absolute;
    right: 18px;
    top: 14px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
@media (max-width: 600px) {
    .close-modal {
        font-size: 2.6rem;
        right: 10px;
        top: 32px;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255,255,255,0.85);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        touch-action: manipulation;
    }
    #modal-title {
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
        z-index: 11;
        font-size: 1.25rem !important;
        padding: 32px 0 12px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
}
#modal-title {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 11;
    font-size: 1.18rem;
    padding: 18px 0 12px 0;
    margin-bottom: 0;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.01em;
    border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 600px) {
    #modal-title {
        position: sticky !important;
        top: 0 !important;
        background: #fff !important;
        z-index: 11;
        font-size: 1.25rem !important;
        padding: 18px 0 12px 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
    }
}

#post-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #0047ab;
    font-weight: 500;
}

#post-form input[type="text"],
#post-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbe2ef;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 8px;
    resize: vertical;
}

#post-form input[type="file"] {
    margin-top: 8px;
    margin-bottom: 8px;
}

#post-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #0047ab;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}

#post-form button[type="submit"]:hover {
    background: #2563eb;
}

#image-preview {
    display: block;
    margin-top: 8px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
    .admin-panel {
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0 0 24px 0;
    }
    .admin-panel header, .panel-top {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 6px 8px 6px;
        gap: 8px;
    }
    .blog-table {
        width: 100vw;
        font-size: 14px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .modal-content {
        min-width: 98vw;
        max-width: 99vw;
        padding: 10px 2vw 10px 2vw;
        max-height: 98vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    #post-form input[type="text"],
    #post-form textarea,
    #post-form button[type="submit"] {
        font-size: 15px;
        padding: 10px;
    }
    .image-preview-list {
        gap: 6px;
    }
    .image-preview-item {
        width: 48px;
        height: 48px;
    }
    .lang-switcher {
        margin-right: 0;
        margin-bottom: 8px;
    }
    #add-post-btn, #logout-btn {
        width: 100%;
        margin: 0 0 8px 0;
        font-size: 15px;
        padding: 10px 0;
    }
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 16px;
}
.lang-btn {
    background: #e3e8ee;
    color: #0047ab;
    border: none;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lang-btn.active, .lang-btn:hover {
    background: #0047ab;
    color: #fff;
}
.admin-logo {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 120px;
}
@media (max-width: 600px) {
    .lang-switcher {
        margin-right: 4px;
    }
    .admin-logo {
        max-width: 80px;
        margin-bottom: 12px;
    }
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
}
.image-preview-item {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f4f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.image-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #d72638;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
}
.image-remove-btn:hover {
    background: #b91c1c;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}
.media-preview-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: box-shadow 0.2s;
}
.media-preview-item.dragging {
    opacity: 0.5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.media-preview-item img,
.media-preview-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.media-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(215,38,56,0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}
.media-remove-btn:hover {
    background: #b71c1c;
}
@media (max-width: 600px) {
    .media-preview-item {
        width: 80px;
        height: 60px;
    }
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#login-form .show-password-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
}
#login-form .show-password-row label {
    margin: 0 !important;
    font-size: 0.98rem !important;
    cursor: pointer !important;
    user-select: none !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    display: flex !important;
    align-items: center !important;
}

.password-wrapper {
    position: relative !important;
    width: 100% !important;
}

.modern-input.password-input {
    height: 44px !important;
    line-height: 44px !important;
    padding-right: 44px !important;
    box-sizing: border-box !important;
    border: 1px solid #d1d5db !important;
    font-size: 1rem !important;
    background: #f9fafb !important;
}

.toggle-password-btn {
    position: absolute !important;
    right: 12px !important;
    top: 10px !important;
    height: 24px !important;
    width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 2 !important;
}

#toggle-password-icon {
    font-size: 1.3em !important;
    color: #003380 !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    right: auto;
    width: auto !important;
    min-width: 80px;
    max-width: 200px;
    display: inline-block !important;
    box-sizing: border-box !important;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s;
    z-index: 10;
}
.back-btn:hover {
    background: #1742a0;
    color: #fff;
}

.admin-login .admin-logo {
    margin-top: 48px !important;
}

.admin-login h2 {
    margin-top: 24px !important;
}

#login-form {
    margin-top: 24px !important;
}