/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: #ffffff;
    --text-light: #333333;
    --text-gray: #666666;
    --border-light: #dddddd;
}

[data-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-light: #1e1e1e;
    --text-light: #e0e0e0;
    --text-gray: #b0b0b0;
    --border-light: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.logo-icon {
    width: auto;
    max-width: 100px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    backdrop-filter: blur(10px);
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-link i {
    font-size: 16px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.form-card, .info-card, .input-card, .stats-card {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out;
    color: var(--text-light);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    color: var(--text-light);
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    text-align: center;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.2em;
}

.info-card h2 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.po-number {
    font-size: 1.1em;
    color: #666;
    font-weight: 600;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 600;
    font-size: 14px;
}

small {
    display: block;
    margin-top: 5px;
    color: var(--text-gray);
    font-size: 13px;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: var(--bg-light);
    color: var(--text-light);
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 112, 154, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 237, 234, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    color: white;
}

.btn-info:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(48, 207, 208, 0.4);
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-number {
    padding: 12px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-number:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-number:active {
    transform: scale(0.95);
}

/* ===== GRIDS ===== */
.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.data-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
}

.data-number {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.data-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

/* ===== STATS ===== */
.stats-card {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.action-buttons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons .btn {
    margin: 0;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left-color: #c33;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #155724;
}

[data-theme="dark"] .alert-error {
    background: #3c2222;
    color: #ff6666;
    border-left-color: #ff6666;
}

[data-theme="dark"] .alert-success {
    background: #223c22;
    color: #66ff66;
    border-left-color: #66ff66;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
}

.riwayat-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    color: var(--text-light);
}

.riwayat-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.riwayat-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.riwayat-table tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.text-center {
    text-align: center;
}

.or-divider {
    text-align: center;
    margin: 15px 0;
    color: #999;
    font-weight: 600;
}

/* ===== FILTER ===== */
.filter-form {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.filter-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 10px;
}

/* ===== PICKER STYLES (Mode 2) ===== */
.scrollable-picker-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 250, 0.95) 100%);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.picker-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}

.picker-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.picker-scroll {
    width: 100px;
    height: 240px;
    overflow-y: scroll;
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(102, 126, 234, 0.12);
    scroll-behavior: smooth;
    padding: 0;
    margin: 0 8px;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Khusus untuk picker angka utama (4, 5, 6) - lebih kecil */
#picker-whole {
    width: 70px;
}

/* Khusus untuk picker desimal (00-99) - normal */
#picker-decimal {
    width: 100px;
}

.picker-scroll::-webkit-scrollbar {
    width: 5px;
}

.picker-scroll::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.picker-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.picker-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.picker-item {
    padding: 16px 10px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.picker-item:hover {
    color: #667eea;
}

.picker-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 28px;
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(102, 126, 234, 0.1);
    font-weight: 800;
}

.picker-item.picker-dummy {
    visibility: hidden;
    pointer-events: none;
}

.picker-indicator {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 64px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(102, 126, 234, 0.02) 100%);
    border-radius: 10px;
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.picker-dot {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin: 0 6px;
    align-self: center;
}

/* ===== PAGINATION ===== */
.pagination-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(245, 247, 250, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    color: #667eea;
    text-decoration: none;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.05);
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.pagination-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.08);
}

.pagination-btn.pagination-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.pagination-dots {
    color: #999;
    padding: 0 3px;
    font-size: 12px;
    line-height: 36px;
}

.pagination-info {
    text-align: center;
}

.pagination-info .info-text {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(102, 126, 234, 0.02) 100%);
    padding: 8px 16px;
    border-radius: 6px;
    color: #333;
    font-size: 13px;
    border-left: 3px solid #667eea;
}

.pagination-info strong {
    color: #667eea;
    font-weight: 700;
}

/* ===== RECOVERY DIALOG ===== */
.recovery-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.recovery-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    color: var(--text-light);
}

.recovery-content h3 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 20px;
}

.recovery-info {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 6px;
    margin: 15px 0;
}

.recovery-info p {
    margin: 6px 0;
    color: #333;
    font-size: 14px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: var(--bg-light);
    color: var(--text-light);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: right 0.3s ease-out;
    min-width: 200px;
    font-weight: 600;
    font-size: 14px;
}

.notification.show {
    right: 15px;
}

.notification-success {
    border-left: 4px solid #4CAF50;
    color: #4CAF50;
}

.notification-error {
    border-left: 4px solid #f44336;
    color: #f44336;
}

.notification-warning {
    border-left: 4px solid #FF9800;
    color: #FF9800;
}

.notification-info {
    border-left: 4px solid #2196F3;
    color: #2196F3;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .logo {
        gap: 8px;
        font-size: 16px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
        gap: 4px;
    }
    
    .nav-link i {
        font-size: 14px;
    }
    
    .theme-toggle {
        padding: 6px 10px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 15px 10px;
    }
    
    .form-card, .info-card, .input-card, .stats-card {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1.1em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 13px;
    }
    
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .btn-number {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 13px;
        margin: 4px;
    }
    
    .filter-group {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .filter-group button,
    .filter-group a {
        grid-column: span 1;
    }
    
    .riwayat-table {
        font-size: 12px;
    }
    
    .riwayat-table th,
    .riwayat-table td {
        padding: 8px;
    }
    
    .stat-item {
        padding: 12px;
        flex-basis: 50%;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .scrollable-picker-container {
        padding: 25px 15px;
        margin: 15px 0;
    }
    
    .picker-scroll {
        width: 90px;
        height: 220px;
        margin: 0 6px;
    }
    
    .picker-item {
        padding: 14px 8px;
        font-size: 18px;
    }
    
    .picker-item.active {
        font-size: 24px;
    }
    
    .picker-dot {
        font-size: 28px;
        margin: 0 4px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
        padding: 0 6px;
    }
    
    .pagination-dots {
        padding: 0 2px;
        font-size: 11px;
    }
    
    .pagination-info .info-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .recovery-content {
        padding: 20px;
    }
    
    .notification {
        min-width: 160px;
        font-size: 12px;
        right: -280px;
        padding: 10px 12px;
    }
    
    .notification.show {
        right: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .logo {
        gap: 6px;
        font-size: 14px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 12px;
        gap: 3px;
    }
    
    .nav-link i {
        font-size: 13px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .theme-toggle {
        padding: 5px 8px;
        font-size: 14px;
    }
    
    .main-content {
        padding: 12px 8px;
    }
    
    .form-card, .info-card, .input-card, .stats-card {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    h1 {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.1em;
    }
    
    h3 {
        font-size: 1em;
    }
    
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 12px;
    }
    
    .footer-section a {
        line-height: 1.8;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }
    
    .btn-number {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .btn {
        padding: 10px 12px;
        font-size: 12px;
        margin: 3px 0;
        width: 100%;
    }
    
    .filter-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .riwayat-table {
        font-size: 11px;
    }
    
    .riwayat-table th,
    .riwayat-table td {
        padding: 6px;
    }
    
    .stat-item {
        padding: 10px;
        flex-basis: 50%;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .scrollable-picker-container {
        padding: 20px 10px;
        margin: 12px 0;
        border-radius: 12px;
    }
    
    .picker-scroll {
        width: 80px;
        height: 200px;
        margin: 0 4px;
        border-radius: 10px;
    }
    
    .picker-item {
        padding: 12px 6px;
        font-size: 16px;
    }
    
    .picker-item.active {
        font-size: 22px;
        transform: scale(1.1);
    }
    
    .picker-dot {
        font-size: 24px;
        margin: 0 3px;
    }
    
    .pagination-container {
        padding: 15px;
        margin-top: 20px;
        gap: 12px;
    }
    
    .pagination {
        gap: 3px;
    }
    
    .pagination-btn {
        min-width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 0 4px;
    }
    
    .pagination-btn.pagination-first,
    .pagination-btn.pagination-last {
        display: none;
    }
    
    .pagination-dots {
        display: none;
    }
    
    .pagination-info .info-text {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .action-buttons .btn {
        margin: 0;
    }
    
    .recovery-content {
        padding: 18px;
        border-radius: 10px;
    }
    
    .recovery-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .recovery-info {
        padding: 10px;
        margin: 12px 0;
    }
    
    .recovery-info p {
        margin: 5px 0;
        font-size: 13px;
    }
    
    .notification {
        min-width: 140px;
        font-size: 11px;
        right: -260px;
        padding: 8px 10px;
        border-radius: 6px;
    }
    
    .notification.show {
        right: 8px;
    }
}
/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    color: #e0e0e0;
    padding: 40px 20px 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.footer-section p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: white;
    padding-left: 4px;
    transform: translateX(4px);
}

.footer-section a i {
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-section a:hover i {
    color: #764ba2;
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom i {
    color: #f5576c;
    animation: heartBeat 1.3s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
}