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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

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

/* Sidebar */
.sidebar {
    width: 250px;
    background: #16213e;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #0f3460;
    margin-bottom: 20px;
}

.sidebar-header h1 {
    color: #e94560;
    font-size: 24px;
}

.sidebar-header span {
    color: #888;
    font-size: 12px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 12px 20px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #0f3460;
    color: #fff;
}

.nav-item.active {
    background: #0f3460;
    color: #e94560;
    border-left-color: #e94560;
}

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

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

.header h2 {
    color: #fff;
}

/* Cards */
.card {
    background: #16213e;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #0f3460;
}

.card-title {
    font-size: 18px;
    color: #fff;
}

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

.stat-card {
    background: #16213e;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 32px;
    color: #e94560;
    margin-bottom: 5px;
}

.stat-card p {
    color: #888;
    font-size: 14px;
}

.stat-card.success h3 { color: #4ade80; }
.stat-card.warning h3 { color: #fbbf24; }
.stat-card.info h3 { color: #60a5fa; }
.stat-card.danger h3 { color: #f87171; }

/* Tables */
.table-container {
    overflow-x: auto;
}

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

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #0f3460;
}

th {
    background: #0f3460;
    color: #fff;
    font-weight: 600;
}

tr:hover {
    background: #1a2744;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #d63850;
}

.btn-secondary {
    background: #0f3460;
    color: #fff;
}

.btn-secondary:hover {
    background: #1a4a7a;
}

.btn-success {
    background: #4ade80;
    color: #000;
}

.btn-success:hover {
    background: #22c55e;
}

.btn-warning {
    background: #fbbf24;
    color: #000;
}

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

.btn-danger {
    background: #f87171;
    color: #fff;
}

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

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    background: #0f3460;
    border: 1px solid #1a4a7a;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #e94560;
}

select.form-control {
    cursor: pointer;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #4ade80; color: #000; }
.badge-warning { background: #fbbf24; color: #000; }
.badge-danger { background: #f87171; color: #fff; }
.badge-info { background: #60a5fa; color: #000; }
.badge-secondary { background: #6b7280; color: #fff; }
.badge-primary { background: #e94560; color: #fff; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid #4ade80;
    color: #4ade80;
}

.alert-danger {
    background: rgba(248, 113, 113, 0.2);
    border: 1px solid #f87171;
    color: #f87171;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid #fbbf24;
    color: #fbbf24;
}

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

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #16213e;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #0f3460;
}

.modal-header h3 {
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: #e94560;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #0f3460;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-box {
    background: #16213e;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.login-box .btn {
    width: 100%;
    margin-top: 10px;
}

/* Logo Preview */
.logo-preview {
    width: 200px;
    height: 100px;
    background: #0f3460;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    overflow: hidden;
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Text utilities */
.text-muted { color: #888; }
.text-success { color: #4ade80; }
.text-danger { color: #f87171; }
.text-warning { color: #fbbf24; }

/* Code */
code {
    background: #0f3460;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 10px 0;
    }

    .sidebar-header h1,
    .sidebar-header span,
    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 60px;
        padding: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
