/* Panel VPS Styles */
:root {
    --primary-color: #ffc107;
    --primary-dark: #d39e00;
    --primary-light: #fff3cd;
    --gold-color: #ffd700;
    --amber-color: #ffbf00;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --discord-color: #5865f2;
    --sidebar-width: 280px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(218, 165, 32, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #2a2a0a 0%, #1a1a05 50%, #000000 100%);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    animation: backgroundShimmer 10s ease-in-out infinite alternate;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 193, 7, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at center, #2a2a0a 0%, #1a1a05 50%, #000000 100%);
    z-index: 1;
}

.login-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.login-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(255, 193, 7, 0.1),
        inset 0 1px 0 rgba(255, 193, 7, 0.1);
}

.login-logo {
    width: 120px;
    height: 120px;
    background: url('/Logodev.png') center/contain no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 0 50px rgba(255, 193, 7, 0.8),
        0 0 100px rgba(255, 215, 0, 0.4),
        inset 0 0 30px rgba(255, 193, 7, 0.1);
    animation: logoGlow 3s ease-in-out infinite;
    position: relative;
    border: 3px solid rgba(255, 193, 7, 0.5);
}

.login-logo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: conic-gradient(from 0deg, 
        rgba(255, 193, 7, 0.6), 
        transparent, 
        rgba(255, 193, 7, 0.6), 
        transparent,
        rgba(255, 193, 7, 0.6));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
    mask: radial-gradient(circle at center, transparent 108px, black 110px);
}

.login-logo::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 
            0 0 40px rgba(255, 193, 7, 0.6),
            0 0 80px rgba(255, 215, 0, 0.3);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 
            0 0 60px rgba(255, 193, 7, 0.8),
            0 0 120px rgba(255, 215, 0, 0.5);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes backgroundShimmer {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.1) saturate(1.3); }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1); 
    }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffc107, #ffd700, #ffffff, #ffc107);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 193, 7, 0.5);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--discord-color), #4752c4);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.4);
    color: white;
    text-decoration: none;
}

.discord-btn i {
    font-size: 1.3rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #7dd87f;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: 
        linear-gradient(180deg, rgba(255, 193, 7, 0.05) 0%, transparent 100%),
        rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(255, 193, 7, 0.3);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: inset -1px 0 0 rgba(255, 193, 7, 0.1);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    background: url('/Logodev.png') center/contain no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 
        0 0 30px rgba(255, 193, 7, 0.6),
        0 0 60px rgba(255, 193, 7, 0.3),
        inset 0 0 20px rgba(255, 193, 7, 0.1);
    position: relative;
    border: 2px solid rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 40px rgba(255, 193, 7, 0.8),
        0 0 80px rgba(255, 193, 7, 0.4),
        inset 0 0 30px rgba(255, 193, 7, 0.2);
}

.sidebar-logo::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        rgba(255, 193, 7, 0.8), 
        transparent, 
        rgba(255, 193, 7, 0.8), 
        transparent);
    background-size: 200% 200%;
    animation: rotateBorder 3s linear infinite;
    mask: radial-gradient(circle at center, transparent 58px, black 60px);
    z-index: -1;
}

.sidebar-logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: 
        linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    color: white;
    border-left-color: var(--primary-color);
    text-decoration: none;
    box-shadow: inset 0 0 20px rgba(255, 193, 7, 0.1);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, #2a2a0a 0%, #1a1a05 50%, #000000 100%);
}

.topbar {
    background: 
        linear-gradient(90deg, rgba(255, 193, 7, 0.05) 0%, transparent 50%, rgba(255, 193, 7, 0.05) 100%),
        rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(255, 193, 7, 0.1);
}

.topbar-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    color: white;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-1px);
}

.content {
    padding: 2rem;
}

/* Cards and Components */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: 
        linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 193, 7, 0.1),
        inset 0 1px 0 rgba(255, 193, 7, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.15), transparent);
    animation: cardShine 4s ease-in-out infinite;
}

@keyframes cardShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.card {
    background: 
        linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 193, 7, 0.25);
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 193, 7, 0.08),
        inset 0 1px 0 rgba(255, 193, 7, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #20c997);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #e74c3c);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #f39c12);
    color: #000;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    font-weight: 600;
    color: var(--primary-color);
    background: 
        linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Terminal */
.terminal {
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    color: #00ff00;
    font-size: 0.9rem;
}

.terminal-output {
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

.terminal-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
}

.terminal-command {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Progress Bars */
.progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff6b7a);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* File Manager */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.file-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-item:hover {
    background: 
        linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.2);
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.file-name {
    font-size: 0.9rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .topbar {
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-menu {
        gap: 0.5rem;
    }
    
    .user-info {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    z-index: 1000;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}