/* ================================================
   Ultimate Gaming Solutions - Main Stylesheet
   ================================================ */

/* CSS Variables */
:root {
    --primary-color: #e94560;
    --secondary-color: #16213e;
    --dark-bg: #0f0f23;
    --card-bg: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #8b8b9a;
    --success-color: #00d26a;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --border-color: #2d2d44;
    --gradient-primary: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin Bar Styles */
.admin-bar {
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-bar .nav-link {
    padding: 0.25rem 0.5rem;
}

.admin-bar .dropdown-menu {
    margin-top: 0.25rem;
}

/* Main Navigation */
.main-nav {
    box-shadow: var(--box-shadow);
}

.main-nav .nav-link {
    color: var(--text-muted) !important;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.main-nav .nav-link:hover {
    color: var(--text-light) !important;
}

.main-nav .dropdown-menu {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.main-nav .dropdown-item {
    color: var(--text-light);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.main-nav .dropdown-item:hover {
    background: rgba(233, 69, 96, 0.2);
    color: var(--primary-color);
}

.main-nav .dropdown-item i {
    width: 20px;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px 0;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.2);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn-primary,
.btn-danger {
    background: var(--gradient-primary);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.btn-outline-primary,
.btn-outline-danger {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-danger:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background: var(--border-color);
    border-color: var(--border-color);
    color: var(--text-light);
}

/* Forms */
.form-control,
.form-select {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-muted);
}

/* Tables */
.table {
    color: var(--text-light);
}

.table thead {
    background: var(--dark-bg);
}

.table thead th {
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background: rgba(0, 210, 106, 0.15);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 100 100&quot;&gt;&lt;circle cx=&quot;50&quot; cy=&quot;50&quot; r=&quot;1&quot; fill=&quot;%23e94560&quot; opacity=&quot;0.1&quot;/&gt;&lt;/svg&gt;') repeat;
    background-size: 50px 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section h1 span {
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Pricing Cards */
.pricing-card {
    text-align: center;
    padding: 2rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card .price small {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-card .features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card .features li:last-child {
    border-bottom: none;
}

/* Server Status */
.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.server-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.server-status .status-dot.online {
    background: var(--success-color);
}

.server-status .status-dot.offline {
    background: var(--danger-color);
    animation: none;
}

.server-status .status-dot.starting {
    background: var(--warning-color);
}

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

/* Game Server Cards */
.game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.game-card .overlay h5 {
    margin-bottom: 0.5rem;
}

/* Resource Calculator */
.calculator-result {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.calculator-result .resource-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.calculator-result .resource-item:last-child {
    border-bottom: none;
}

/* Backup List */
.backup-item {
    background: var(--dark-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.backup-item .backup-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.backup-item .backup-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Styles */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .admin-bar .nav-link.btn {
        margin-bottom: 0.5rem;
    }
    
    .main-nav .navbar-brand {
        font-size: 1rem;
    }
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner-border {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Pagination */
.pagination .page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-light);
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Progress Bar */
.progress {
    background: var(--dark-bg);
    border-radius: 50px;
    height: 8px;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: 50px;
}

/* Tooltips */
.tooltip-inner {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}