/* Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1A1D29 0%, #141720 100%);
    color: #FFFFFF;
    min-height: 100vh;
    padding-top: 70px;
}

/* Navigation */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar {
    background: rgba(26, 29, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #5865F2;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-logo {
    color: #7289DA;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo i {
    color: #5865F2;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #C6D2FF;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: white;
    background: rgba(88, 101, 242, 0.1);
}

.nav-link.active {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.15);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.2) 0%, 
        rgba(109, 139, 255, 0.1) 50%, 
        rgba(157, 181, 255, 0.05) 100%);
    border-bottom: 2px solid #5865F2;
    padding: 120px 0 60px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
        #5865F2, 
        #7289DA,
        #9DB5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: #C6D2FF;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: #B9BBBE;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

/* Live Player Section */
.live-player-section {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.1), 
        rgba(109, 139, 255, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(88, 101, 242, 0.2);
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    text-align: center;
}

.live-player-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #5865F2, 
        #7289DA,
        #9DB5FF);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
}

.player-count {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, 
        #5865F2, 
        #7289DA,
        white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
    margin-bottom: 1rem;
}

.player-progress {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem auto;
    border: 1px solid rgba(88, 101, 242, 0.3);
    max-width: 600px;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #5865F2, 
        #7289DA);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #43B581;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #43B581;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    color: #7289DA;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.15), 
        rgba(109, 139, 255, 0.1));
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #5865F2, 
        #7289DA,
        #9DB5FF);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #5865F2;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #5865F2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, 
        #5865F2, 
        #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #C6D2FF;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Status Cards */
.status-card {
    background: rgba(88, 101, 242, 0.1);
    border: 2px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card:hover {
    border-color: #5865F2;
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.status-card h3 {
    color: #5865F2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-card p {
    color: #B9BBBE;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, 
        #5865F2, 
        #4752C4);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, 
        #7289DA, 
        #5865F2);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.4);
}

.btn-secondary {
    background: rgba(88, 101, 242, 0.1);
    color: #C6D2FF;
    border: 2px solid rgba(88, 101, 242, 0.3);
}

.btn-secondary:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
    color: white;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #43B581, #3AA371);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #4BC991, #43B581);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 181, 129, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #F04747, #D84040);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #FF5555, #F04747);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(240, 71, 71, 0.4);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, 
        #141720 0%, 
        rgba(88, 101, 242, 0.1) 100%);
    border-top: 2px solid #5865F2;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo i {
    font-size: 2rem;
    color: #5865F2;
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7289DA;
    margin-left: 10px;
}

.footer-description {
    color: #C6D2FF;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5865F2;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(88, 101, 242, 0.1);
}

.social-icon:hover {
    background: #5865F2;
    color: white;
    transform: translateY(-3px);
}

.footer-copyright {
    color: #72767D;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin-top: 0.5rem;
}

/* Admin Panel Styles */
.admin-nav {
    background: linear-gradient(135deg, #4752C4, #5865F2);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #3C45A5;
}

.admin-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.admin-nav-logo i {
    color: #C6D2FF;
}

.admin-nav-menu {
    display: flex;
    gap: 1.5rem;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.2), 
        rgba(109, 139, 255, 0.1));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(88, 101, 242, 0.3);
}

.admin-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, 
        #5865F2, 
        #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-subtitle {
    color: #C6D2FF;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.1), 
        rgba(109, 139, 255, 0.05));
    border: 2px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: #5865F2;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #5865F2, 
        #7289DA);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    color: #7289DA;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #5865F2;
}

.bot-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 8px;
    border-left: 4px solid #43B581;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #43B581;
    box-shadow: 0 0 10px #43B581;
}

.status-text {
    color: #FFFFFF;
    font-weight: 500;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #C6D2FF;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: rgba(88, 101, 242, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #7289DA;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #C6D2FF;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Log Section */
.log-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.log-entry {
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #B9BBBE;
}

.log-entry.success {
    color: #43B581;
}

.log-entry.error {
    color: #F04747;
}

.log-entry.warning {
    color: #FAA61A;
}

.log-entry.info {
    color: #7289DA;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: linear-gradient(135deg, #1A1D29, #141720);
    border: 2px solid #5865F2;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-header h3 {
    color: #7289DA;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-close {
    background: none;
    border: none;
    color: #B9BBBE;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.login-close:hover {
    color: white;
}

.login-error {
    color: #F04747;
    background: rgba(240, 71, 71, 0.1);
    border: 1px solid rgba(240, 71, 71, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: none;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #5865F2;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #43B581;
}

.notification-error {
    background: #F04747;
}

.notification-warning {
    background: #FAA61A;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(88, 101, 242, 0.3);
    border-top: 3px solid #5865F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(26, 29, 41, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .player-count {
        font-size: 3.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .live-player-section {
        padding: 2rem;
    }
    
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .admin-nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}
