* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #ccc;
    height: 100%;
    width: 100%;
}

body {
    line-height: 1.6;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    color: #7d7d7d;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-bottom: 0.5em;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }

a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #00ffff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: transparent;
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.btn-primary:hover:not(:disabled) {
    background: transparent;
    color: #00d4ff;
    border-color: #00d4ff;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #ccc;
    border: 1px solid #666;
}

.btn-secondary:hover:not(:disabled) {
    background: transparent;
    border-color: #666;
    color: #ccc;
    box-shadow: none;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #45a049;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.btn-danger {
    background: transparent;
    color: #f44336;
    border: 1px solid #f44336;
}

.btn-danger:hover:not(:disabled) {
    background: transparent;
    color: #f44336;
    border-color: #f44336;
    box-shadow: none;
}

.btn-info {
    background: #2196f3;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #0b7dda;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #e68900;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Cards & Containers */
.card {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.card:hover {
    border-color: #00d4ff;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.card-header {
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-body {
    padding: 0;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 13px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid #ff9800;
    color: #ff9800;
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead {
    background: #1a1a1a;
}

th {
    padding: 12px;
    text-align: left;
    color: #00d4ff;
    font-weight: 600;
    border-bottom: 2px solid #444;
}

td {
    padding: 12px;
    border-bottom: 1px solid #444;
    color: #ccc;
}

tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.badge-danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.badge-warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.badge-info {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

/* Loading & States */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #444;
    border-radius: 50%;
    border-top-color: #00d4ff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .btn {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px;
    }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 16px; }

    .header-left {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .brand-logo {
        font-size: 11px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row input,
    .form-row select {
        width: 100%;
    }

    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 8px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}
