/* assets/css/admin.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-primary: #0b132b;
    --bg-card: rgba(27, 38, 59, 0.65);
    --border-color: rgba(65, 90, 119, 0.4);
    --accent-gold: #ffd60a;
    --accent-blue: #4cc9f0;
    --accent-purple: #7209b7;
    --accent-danger: #e63946;
    --text-primary: #ffffff;
    --text-secondary: #e0e1dd;
}

body {
    margin: 0;
    padding: 40px 20px;
    font-family: 'Outfit', 'Inter', sans-serif;
    background: radial-gradient(circle at 50% 50%, #1c2541, #0b132b);
    color: var(--text-primary);
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Page Dashboard wrapper */
.dashboard-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.dashboard-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-right {
    width: 320px;
    position: sticky;
    top: 40px;
    background: rgba(27, 38, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

@media (max-width: 900px) {
    .dashboard-wrapper {
        flex-direction: column-reverse; /* Put play button on top on mobile */
    }
    .dashboard-right {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Glassmorphism Card base */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 214, 10, 0.3);
    box-shadow: 0 15px 35px rgba(255, 214, 10, 0.05), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Title text stylings */
h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 214, 10, 0.4);
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

small {
    color: #8da9c4;
    font-size: 0.9rem;
}

/* Form Fields */
label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="number"],
input[type="file"] {
    width: 100%;
    padding: 14px 18px;
    background: #0d1b2a;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(255, 214, 10, 0.35);
    background: #112240;
    outline: none;
}

/* Beautiful custom file upload drag/drop style area */
.file-upload-zone {
    border: 2px dashed var(--border-color);
    background: rgba(13, 27, 42, 0.4);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.file-upload-zone:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 214, 10, 0.05);
}

.file-upload-zone input[type="file"] {
    display: none;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* Alert Boxes */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-success {
    background: rgba(42, 157, 143, 0.2);
    border: 2px solid #2a9d8f;
    color: #52b788;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Dynamic Buttons */
.btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--accent-gold);
    color: #0b132b;
    box-shadow: 0 4px 15px rgba(255, 214, 10, 0.3);
}

.btn-primary:hover {
    background: #ffffff;
    color: #0b132b;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: #3a0ca3;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(58, 12, 163, 0.3);
}

.btn-secondary:hover {
    background: #4cc9f0;
    color: #0b132b;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
}

.btn-danger {
    background: var(--accent-danger);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-danger:hover {
    background: #ffffff;
    color: var(--accent-danger);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Form Layout rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Massive Play Button */
.play-btn-massive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #ffd60a, #ff9e00);
    border-radius: 50%;
    color: #0b132b;
    box-shadow: 0 15px 35px rgba(255, 214, 10, 0.4), 0 0 60px rgba(255, 158, 0, 0.3) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    border: 4px solid #fff;
    margin-top: 10px;
}

.play-btn-massive:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 214, 10, 0.6), 0 0 80px rgba(255, 158, 0, 0.5) inset;
    background: linear-gradient(135deg, #ffb703, #fb8500);
}

.play-btn-massive::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px; right: -15px; bottom: -15px;
    border: 2px solid rgba(255, 214, 10, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.play-btn-massive::after {
    content: '';
    position: absolute;
    top: -30px; left: -30px; right: -30px; bottom: -30px;
    border: 1px solid rgba(255, 214, 10, 0.1);
    border-radius: 50%;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.play-icon {
    width: 60px;
    height: 60px;
    margin-left: 10px; /* Optical center adjustment for a triangle */
}

/* Premium iOS/Material Style Switch Toggle */
.switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 58px;
    height: 30px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0d1b2a;
    border: 2px solid var(--border-color);
    transition: .3s;
    border-radius: 30px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #8da9c4;
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}
input:checked + .slider:before {
    transform: translateX(28px);
    background-color: #0b132b;
}
