* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-bg, .admin-bg {
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.login-box {
    width: 350px;
    margin: 150px auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.login-box h2 {
    margin-bottom: 20px;
    color: #f5c542;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

.login-box button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #f5c542;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.login-box button:hover {
    background: #d4a832;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background: #1a1a1a;
    position: fixed;
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar h2 {
    padding: 0 20px 20px;
    color: #f5c542;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #aaa;
    text-decoration: none;
    padding: 15px 20px;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.sidebar a:hover, .sidebar a.active {
    background: #0a0a0a;
    color: #f5c542;
    border-left-color: #f5c542;
}

.main {
    margin-left: 250px;
    padding: 30px;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-add {
    background: #f5c542;
    color: #000;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-add:hover {
    background: #d4a832;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(245,197,66,0.2);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-actions {
    padding: 15px;
    text-align: center;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-delete:hover {
    background: #c0392b;
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-box {
    background: #1a1a1a;
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.upload-box:hover {
    border-color: #f5c542;
    background: #222;
}

.upload-box input {
    display: none;
}

.upload-box p {
    margin-top: 15px;
    color: #aaa;
}

#preview img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

.btn-submit, .btn-cancel {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    margin: 5px;
}

.btn-submit {
    background: #f5c542;
    color: #000;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    background: #d4a832;
}

.btn-cancel {
    background: #333;
    color: #fff;
}

.btn-cancel:hover {
    background: #444;
}

table {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

table th {
    background: #f5c542;
    color: #000;
    padding: 15px;
    text-align: left;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #333;
}

table tr:last-child td {
    border-bottom: none;
}

.btn-edit {
    background: #3498db;
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin: 3px;
}

.btn-edit:hover {
    background: #2980b9;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.dash-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dash-card h3 {
    color: #f5c542;
    margin-bottom: 15px;
}

.dash-card p {
    color: #aaa;
    margin-bottom: 20px;
}

.form-container {
    max-width: 500px;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
}

.form-container label {
    display: block;
    margin-bottom: 10px;
    color: #f5c542;
}

.banner-management {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.banner-box {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
}

.banner-box h3 {
    color: #f5c542;
    margin-bottom: 15px;
}

.banner-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.banner-img-slot {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 10px;
}

.img-preview {
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #666;
    border-radius: 6px;
}

.img-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.img-actions a {
    padding: 6px 12px;
    font-size: 12px;
}

.pin-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5c542;
    color: #000;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.media-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #f5c542;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.gallery-card {
    position: relative;
}

table a {
    color: #f5c542;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}
