/* ==================== ADMIN PANEL STYLES ==================== */
/* Pink Panther Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0510;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.login-bg .bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg,
        #0a0510 0%,
        #1a0a1a 30%,
        #2a1030 50%,
        #1a0a1a 70%,
        #0a0510 100%
    );
}

/* Floating Coins */
.floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
}

.coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('assets/lighta_coin.png') center/contain no-repeat;
    opacity: 0.15;
    bottom: -50px;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Glow Orbs */
.glow-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #ff69b4;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #ff1493;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: #da70d6;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: linear-gradient(145deg, rgba(30, 15, 35, 0.9), rgba(20, 10, 25, 0.95));
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 105, 180, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.login-logo {
    width: 100px;
    height: 100px;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.login-title {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ff69b4;
    text-shadow:
        0 0 20px rgba(255, 105, 180, 0.5),
        0 0 40px rgba(255, 105, 180, 0.3);
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 105, 180, 0.5);
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.05);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.2);
}

.input-wrapper input:focus + .input-glow {
    opacity: 1;
}

.input-wrapper:has(input:focus) .input-icon {
    color: #ff69b4;
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff69b4, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Error Message */
.error-message {
    text-align: center;
    color: #ff4757;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Login Button - 3D Style */
.login-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(180deg, #ff7ac6 0%, #ff69b4 50%, #e91e8c 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease;
    margin-top: 15px;
    box-shadow:
        0 6px 0 #b8147a,
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
}

.login-btn:hover {
    background: linear-gradient(180deg, #ff8ad0 0%, #ff79c4 50%, #f42e9c 100%);
    box-shadow:
        0 6px 0 #c01884,
        0 10px 20px rgba(255, 105, 180, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.login-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #b8147a,
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.login-btn:hover .btn-icon svg {
    transform: translateX(5px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.login-btn:hover .btn-glow {
    left: 100%;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.login-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-page {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, rgba(30, 15, 35, 0.98), rgba(15, 8, 20, 0.98));
    border-right: 1px solid rgba(255, 105, 180, 0.15);
    padding: 25px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 105, 180, 0.15);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;
    color: #ff69b4;
    letter-spacing: 2px;
}

.sidebar-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.nav-section {
    margin-bottom: 30px;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-left: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.nav-item:hover {
    background: rgba(255, 105, 180, 0.1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 20, 147, 0.1));
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.5);
    transition: fill 0.3s;
}

.nav-item:hover svg,
.nav-item.active svg {
    fill: #ff69b4;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.nav-item:hover span,
.nav-item.active span {
    color: #fff;
}

/* Logout Button */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;
}

.logout-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    fill: #ff4757;
}

.logout-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #ff4757;
}

/* Main Content */
.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: #0a0510;
}

/* Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.page-title span {
    color: #ff69b4;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.preview-btn, .save-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.save-btn {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: none;
    color: #fff;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.preview-btn svg, .save-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Panels/Sections */
.panel {
    display: none;
}

.panel.active {
    display: block;
}

/* Section Cards */
.section-card {
    background: linear-gradient(145deg, rgba(30, 15, 35, 0.8), rgba(20, 10, 25, 0.9));
    border: 1px solid rgba(255, 105, 180, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ff69b4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 20px;
    height: 20px;
    fill: #ff69b4;
}

/* Form Controls */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.05);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a0a1a;
    color: #fff;
}

/* Color Input */
.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
}

/* Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Banner Messages List */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.message-item {
    display: flex;
    gap: 12px;
    align-items: stretch;
    padding: 20px;
    background: linear-gradient(145deg, rgba(20, 10, 25, 0.8), rgba(30, 15, 35, 0.6));
    border-radius: 14px;
    border: 1px solid rgba(255, 105, 180, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.message-item:hover {
    border-color: rgba(255, 105, 180, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.message-item .message-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 0 #b8147a;
}

.message-item textarea {
    flex: 1;
    min-height: 80px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 105, 180, 0.2);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
}

.message-item textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.message-item textarea:focus {
    border-color: #ff69b4;
    background: rgba(255, 105, 180, 0.08);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.15);
}

.message-item .remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.message-item .remove-btn:hover {
    background: rgba(255, 71, 87, 0.25);
    border-color: rgba(255, 71, 87, 0.5);
    transform: scale(1.05);
}

.message-item .remove-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.message-item .remove-btn svg {
    width: 20px;
    height: 20px;
    fill: #ff4757;
}

.add-message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.1), rgba(255, 105, 180, 0.05));
    border: 2px dashed rgba(255, 105, 180, 0.35);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: #ff69b4;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.add-message-btn:hover {
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.2), rgba(255, 105, 180, 0.1));
    border-style: solid;
    border-color: rgba(255, 105, 180, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.add-message-btn svg {
    width: 22px;
    height: 22px;
    fill: #ff69b4;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
}

.timer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.timer-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.timer-btn.pause {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.timer-btn.pause:hover {
    background: rgba(255, 193, 7, 0.25);
}

.timer-btn.resume {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.timer-btn.resume:hover {
    background: rgba(46, 213, 115, 0.25);
}

.timer-btn.reset {
    background: rgba(255, 105, 180, 0.15);
    color: #ff69b4;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.timer-btn.reset:hover {
    background: rgba(255, 105, 180, 0.25);
}

/* Status Indicator */
.status-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 280px;
    padding: 12px 30px;
    background: rgba(15, 8, 20, 0.95);
    border-top: 1px solid rgba(255, 105, 180, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.status-text.saved {
    color: #2ed573;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ed573;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2ed573 0%, #1abc9c 100%);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(46, 213, 115, 0.3);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
        padding: 15px;
    }

    .sidebar-header {
        justify-content: center;
    }

    .sidebar-title,
    .sidebar-subtitle,
    .nav-label,
    .nav-item span,
    .logout-btn span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 14px;
    }

    .logout-btn {
        justify-content: center;
    }

    .admin-content {
        margin-left: 80px;
    }

    .status-bar {
        left: 80px;
    }
}
