/* ============================================
   RSK TWEAKS - ADMIN PANEL STYLES
   ============================================ */

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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --accent-primary: #00f0ff;
    --accent-secondary: #0099ff;
    --accent-gradient: linear-gradient(135deg, #00f0ff 0%, #0099ff 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #2ed573;
    --error: #ff4757;
    --warning: #ffa502;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at top, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        var(--bg-dark);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
}

.login-header .logo svg {
    width: 100%;
    height: 100%;
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h1 span {
    font-weight: 400;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

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

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.error-message {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
    color: var(--error);
    font-size: 14px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

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

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-small {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 8px;
}

.logo-small svg {
    width: 20px;
    height: 20px;
    color: var(--bg-dark);
}

.sidebar-header span {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 153, 255, 0.1) 100%);
    color: var(--accent-primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.admin-info span {
    font-size: 13px;
    color: var(--text-primary);
}

.admin-info small {
    font-size: 11px;
    color: var(--text-secondary);
}

.btn-logout {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--text-secondary);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-icon.blue {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
}

.stat-icon.green {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
}

.stat-icon.red {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.stat-icon.purple {
    background: rgba(156, 136, 255, 0.1);
    color: #9c88ff;
}

.stat-icon.orange {
    background: rgba(255, 165, 2, 0.1);
    color: var(--warning);
}

.stat-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

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

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

th {
    background: rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

td {
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px !important;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.status-badge.revoked {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.status-badge.expired {
    background: rgba(255, 165, 2, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 165, 2, 0.3);
}

.plan-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.plan-badge.premium {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(0, 153, 255, 0.1) 100%);
    color: var(--accent-primary);
}

.plan-badge.standard {
    background: rgba(156, 136, 255, 0.1);
    color: #9c88ff;
}

.plan-badge.free {
    background: rgba(255, 165, 2, 0.1);
    color: var(--warning);
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-action.danger:hover {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.btn-action svg {
    width: 16px;
    height: 16px;
}

/* Search & Filters */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-width: 400px;
}

.search-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
}

.search-box input:focus {
    outline: none;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-dark);
    font-weight: 600;
}

/* Create Form */
.create-form-container {
    max-width: 500px;
}

.create-form-container form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
}

.btn-create {
    margin-top: 10px;
}

.created-license {
    margin-top: 30px;
    padding: 30px;
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    border-radius: 15px;
    text-align: center;
}

.created-license h3 {
    color: var(--success);
    margin-bottom: 20px;
}

.license-key-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 10px;
    margin-bottom: 15px;
}

.license-key-display span {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 2px;
}

.btn-copy {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-copy svg {
    width: 20px;
    height: 20px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 71, 87, 0.1);
    color: var(--error);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 50vh;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid var(--error);
    color: var(--error);
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-weight: 600;
    font-size: 13px;
}

.hwid-value {
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recent Section */
.recent-section {
    margin-top: 30px;
}

.recent-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar-header span,
    .nav-item span,
    .admin-info {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


