/* Perbaikan tombol aksi di tabel */
table .actions {
    display: flex;
    gap: 12px;  /* Jarak antar tombol */
    align-items: center;
    justify-content: flex-start;
}

/* Style tombol edit */
.btn-edit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-edit:hover {
    background-color: #0056b3;
}

/* Style tombol hapus */
.btn-hapus {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-hapus:hover {
    background-color: #a71d2a;
}

/* Tambahan untuk layar kecil */
@media (max-width: 768px) {
    table .actions {
        gap: 8px;
        flex-wrap: wrap;
    }
    .btn-edit, .btn-hapus {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Dark Horror Neon Red Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

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

body {
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 80%, rgba(255, 0, 0, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(0deg, rgba(255, 0, 0, 0.02) 0px, rgba(255, 0, 0, 0.02) 1px, transparent 1px, transparent 50px);
    font-family: 'Share Tech Mono', 'Orbitron', monospace;
    color: #ff3333;
    min-height: 100vh;
}

/* Glow text effect */
h1, h2, h3, .glow {
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 20px rgba(255, 0, 0, 0.5);
    letter-spacing: 2px;
}

h1 { 
    font-size: 2.5rem; 
    border-bottom: 2px solid #ff0000;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h2 { 
    font-size: 1.8rem; 
    border-left: 4px solid #ff0000;
    padding-left: 15px;
    margin: 20px 0;
}

h3 { 
    font-size: 1.3rem; 
    color: #ff6666;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Box / Card */
.box {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #ff0000;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2), inset 0 0 10px rgba(255, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
    border-color: #ff4444;
}

/* Form Elements */
input, select, textarea {
    background: #1a1a1a;
    border: 1px solid #ff3333;
    color: #ff6666;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    background: #0d0d0d;
    color: #ff4444;
}

input::placeholder {
    color: #662222;
}

/* Buttons */
button, .btn, input[type="submit"] {
    background: linear-gradient(135deg, #1a0000 0%, #330000 100%);
    border: 1px solid #ff0000;
    color: #ff3333;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

button:hover, .btn:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #330000 0%, #550000 100%);
    color: #ff6666;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    border-color: #ff4444;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #2a0000 0%, #440000 100%);
    border-color: #ff2222;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #440000 0%, #660000 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.btn-primary {
    background: linear-gradient(135deg, #1a0033 0%, #330055 100%);
    border-color: #ff3366;
    color: #ff6699;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #330055 0%, #550077 100%);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.6);
}

.btn-warning {
    background: linear-gradient(135deg, #331a00 0%, #553300 100%);
    border-color: #ff6633;
    color: #ff9966;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th {
    background: linear-gradient(135deg, #1a0000 0%, #2a0000 100%);
    color: #ff4444;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #ff0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #331111;
    color: #ff7777;
}

tr:hover td {
    background: rgba(255, 0, 0, 0.05);
    color: #ff9999;
}

/* Links */
a {
    color: #ff4444;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #ff8888;
    text-shadow: 0 0 5px #ff0000;
}

/* Navbar */
.nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #ff0000;
    border-radius: 10px;
}

.nav a {
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 0, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Alert / Notification */
.success, .error {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    animation: pulse 1s ease;
}

.success {
    background: rgba(0, 50, 0, 0.8);
    border: 1px solid #00ff00;
    color: #00ff66;
    text-shadow: 0 0 3px #00ff00;
}

.error {
    background: rgba(50, 0, 0, 0.8);
    border: 1px solid #ff0000;
    color: #ff4444;
    text-shadow: 0 0 3px #ff0000;
}

@keyframes pulse {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

/* Info text */
small, .small {
    color: #992222;
    font-size: 12px;
}

/* Number input khusus */
input[type="number"] {
    background: #1a1a1a;
    border: 1px solid #ff3333;
    color: #ff6666;
}

/* Total persen info */
#total_persen_info {
    font-size: 16px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
    text-align: center;
}