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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #EE4D2D 0%, #D0011B 100%);
    min-height: 100vh;
    padding: 16px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 24px;
}

h1, h2, h3 {
    color: #1e0a3a;
    margin-bottom: 16px;
    font-weight: 600;
}
h1 {
    font-size: 1.8rem;
    border-left: 4px solid #EE4D2D;
    padding-left: 15px;
}
h2 {
    font-size: 1.4rem;
    border-bottom: 2px solid #e9d5ff;
    padding-bottom: 6px;
    margin-top: 20px;
}
h3 {
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}
label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #2d1b4e;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
input:focus, select:focus, textarea:focus {
    border-color: #EE4D2D;
    outline: none;
    box-shadow: 0 0 0 2px rgba(238, 77, 45, 0.2);
}
input[readonly] {
    background-color: #f3e8ff;
    cursor: not-allowed;
}

button, .btn {
    display: inline-block;
    background: linear-gradient(135deg, #EE4D2D, #F97316);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin: 4px 4px;
    transition: 0.2s;
}
button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
}
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}
.card {
    background: #f8f4ff;
    padding: 18px;
    border-radius: 8px;
    flex: 1;
    min-width: 140px;
    text-align: center;
    border: 1px solid #e9d5ff;
}
.card h3 {
    font-size: 1rem;
    color: #4c1d95;
    margin-bottom: 8px;
}
.card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2d1b4e;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid #e9d5ff;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
th, td {
    padding: 10px 8px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f0e7ff;
}
th {
    background: #fff1f0;
    color: #D0011B;
    font-weight: 600;
}
tr:hover td {
    background-color: #faf5ff;
}

.desktop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.desktop-nav a {
    color: #4a5568;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.desktop-nav a i {
    font-size: 1.2rem;
}
.desktop-nav a:hover, .desktop-nav a.active {
    background: #EE4D2D;
    color: white;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px 12px;
    z-index: 1000;
    border-top: 1px solid #f0e7ff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
.bottom-nav a {
    color: #718096;
    text-decoration: none;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    border-radius: 8px;
}
.bottom-nav a i {
    font-size: 22px;
}
.bottom-nav a span {
    font-size: 10px;
    font-weight: 500;
    display: block;
}
.bottom-nav a.active, .bottom-nav a:hover {
    color: #EE4D2D;
    background: rgba(238, 77, 45, 0.1);
}

@media (min-width: 769px) {
    .bottom-nav { display: none !important; }
    .desktop-nav { display: flex !important; }
    body { padding-bottom: 20px; }
}
@media (max-width: 768px) {
    .bottom-nav { display: flex !important; }
    .desktop-nav { display: none !important; }
    body { padding-bottom: 70px; }
    .card { min-width: 100%; }
    th, td { font-size: 12px; padding: 6px 4px; }
    .btn, button { padding: 6px 12px; font-size: 12px; }
}
@media print {
    .no-print, .bottom-nav, .desktop-nav, .btn, form { display: none !important; }
    body { background: white; padding: 0; }
    .container { background: white; border-radius: 0; box-shadow: none; padding: 0; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #EE4D2D; border-radius: 10px; }