body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    background-color: #1f1f1f;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 6px 12px;
    border-radius: 4px;
}

.navbar a:hover {
    color: #4caf50;
    background-color: #333;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

.page-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.flash-message {
    background-color: #ff4d4d;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.banner-container {
    width: 100%;
    padding: 0;
    margin: 20px 0;
}

.banner-item {
    background-color: #2d2d2d;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.banner-item img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #444;
    margin-bottom: 10px;
}

.banner-caption {
    padding: 10px;
    margin-top: 10px;
    background-color: #252525;
    border-radius: 4px;
    font-size: 14px;
    white-space: pre-line;
    text-align: center;
    line-height: 1.6;
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #1e1e1e;
    color: #fff;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.admin-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
}

.admin-btn:hover {
    background-color: #45a049;
}

.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.admin-sections-list {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.admin-sections-list li {
    background-color: #3a3a3a;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الإضافات الجديدة */
.banner-delete-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #3a3a3a;
    border-radius: 8px;
}

.banners-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.banners-list li {
    background-color: #2d2d2d;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.banner-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .banner-item img {
        max-height: 200px;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .banners-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
/* أنماط جديدة */
.no-banners {
    color: #ff6b6b;
    text-align: center;
    padding: 15px;
    background: #2d2d2d;
    border-radius: 5px;
}

.banner-info {
    margin-top: 10px;
    width: 100%;
}

.banner-info span {
    display: block;
    font-size: 12px;
    color: #aaa;
    word-break: break-all;
    margin-bottom: 8px;
}

.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #ff0000;
}