/* style.css */
:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --secondary: #2d3748;
    --dark: #1a202c;
    --darker: #121826;
    --light: #e2e8f0;
    --gray: #a0aec0;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--dark);
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 100;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 20px;
}

.logo i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    padding: 0 15px;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--gray);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--secondary);
    color: var(--light);
}

.nav-links a i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--secondary);
}

.header h2 {
    font-size: 24px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-details h4 {
    font-size: 14px;
    font-weight: 600;
}

.user-details p {
    font-size: 12px;
    color: var(--gray);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray);
}

.card-header i {
    font-size: 24px;
    color: var(--primary);
}

.card-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-body p {
    font-size: 14px;
    color: var(--gray);
}

/* Table Styles */
.table-container {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--secondary);
}

th {
    color: var(--gray);
    font-weight: 600;
    font-size: 14px;
}

td {
    font-size: 14px;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background-color: rgba(72, 187, 120, 0.2);
    color: var(--success);
}

.status.pending {
    background-color: rgba(237, 137, 54, 0.2);
    color: var(--warning);
}

.status.expired {
    background-color: rgba(245, 101, 101, 0.2);
    color: var(--danger);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Server Locations */
.server-locations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.server-card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--secondary);
}

.server-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.server-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.server-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.server-features {
    list-style: none;
    margin: 15px 0;
}

.server-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--secondary);
    display: flex;
    align-items: center;
}

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

.server-features li i {
    color: var(--success);
    margin-right: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary);
    border: 1px solid var(--secondary);
    border-radius: var(--radius);
    color: var(--light);
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.select-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23a0aec0' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--secondary);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s ease;
}

.tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* News */
.news-card {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.news-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.news-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

/* Order Form */
.order-summary {
    background-color: var(--dark);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Duration Selector */
.duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.duration-option {
    background-color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: var(--radius);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-option:hover {
    border-color: var(--primary);
}

.duration-option.selected {
    border-color: var(--primary);
    background-color: rgba(108, 99, 255, 0.1);
}

.duration-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

/* Admin Specific Styles */
.admin-indicator {
    background-color: var(--danger);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 5px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success {
    background-color: var(--success);
    color: white;
}

.badge-warning {
    background-color: var(--warning);
    color: white;
}

.badge-danger {
    background-color: var(--danger);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-links {
        display: flex;
        overflow-x: auto;
    }
    
    .nav-links li {
        flex: 0 0 auto;
        margin-bottom: 0;
        margin-right: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-cards,
    .server-locations,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        margin-top: 15px;
    }
}