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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: #1e293b;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 400px;
    max-width: 90%;
}

.login-box h1 {
    margin-bottom: 30px;
    text-align: center;
    color: #3b82f6;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box button:hover {
    background: #2563eb;
}

.error {
    color: #ef4444;
    margin-top: 10px;
    font-size: 14px;
}

.admin-header {
    background: #1e293b;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #334155;
}

.admin-header h1 {
    color: #3b82f6;
    font-size: 24px;
}

.logout-btn {
    padding: 8px 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.logout-btn:hover {
    background: #dc2626;
}

.admin-nav {
    background: #1e293b;
    padding: 0 40px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #334155;
}

.nav-btn {
    padding: 15px 25px;
    background: transparent;
    color: #94a3b8;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: #e2e8f0;
}

.nav-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    padding: 40px;
}

.tab-content h2 {
    margin-bottom: 30px;
    color: #e2e8f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #334155;
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    color: #3b82f6;
    font-size: 32px;
    font-weight: 700;
}

.table-container {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
}

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

thead {
    background: #0f172a;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-top: 1px solid #334155;
}

tr:hover {
    background: #0f172a;
}

.btn-small {
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
}

.btn-small:hover {
    background: #2563eb;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
}

.btn-warning:hover {
    background: #d97706;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: #1e293b;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #94a3b8;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #e2e8f0;
}

.proxy-stats {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #334155;
}

.proxy-stats p {
    margin: 8px 0;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0f172a;
    color: #e2e8f0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background: #10b981;
    color: white;
}

.status-assigned {
    background: #f59e0b;
    color: white;
}
