/* Betingo Kasa - Modern Dark Theme CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Container */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    color: #4facfe;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    text-align: right;
    color: #b0bec5;
}

.username {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 5px;
}

.logout-btn {
    color: #ff6b6b;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #ff6b6b;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* Cash Card */
.cash-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 20px 40px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.cash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.cash-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.cash-amount {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.grid-item h3 {
    color: #4facfe;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(79, 172, 254, 0.3);
    padding-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0bec5;
    font-weight: 500;
    font-size: 0.95rem;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

input::placeholder, textarea::placeholder {
    color: #7c7c7c;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success, .btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 172, 254, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

.btn-success {
    background: linear-gradient(135deg, #2ed573 0%, #17a2b8 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ee5a52 0%, #dc3545 100%);
}

/* Toggle Switch */
.toggle-container {
    margin: 20px 0;
}

.toggle-switch {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    transition: all 0.4s ease;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, #2ed573 0%, #17a2b8 100%);
}

.toggle-labels {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.toggle-labels span {
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .slider .toggle-labels span:first-child {
    opacity: 0.5;
}

.toggle-switch input:not(:checked) + .slider .toggle-labels span:last-child {
    opacity: 0.5;
}

/* Alternative: Simple Toggle Button Style */
.simple-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 5px;
    margin: 20px 0;
}

.simple-toggle input[type="radio"] {
    display: none;
}

.simple-toggle label {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #b0bec5;
}

.simple-toggle input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

/* Messages */
.success {
    background: linear-gradient(135deg, #2ed573 0%, #17a2b8 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #2ed573;
    box-shadow: 0 8px 20px rgba(46, 213, 115, 0.3);
}

.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #ff6b6b;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 5px solid #4facfe;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

/* Transactions */
.transactions-list {
    max-height: 600px;
    overflow-y: auto;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border-left: 5px solid #6c757d;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.transaction-item.add {
    border-left-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.transaction-item.subtract {
    border-left-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.transaction-item.pending {
    border-left-color: #ffa502;
    background: rgba(255, 165, 2, 0.1);
}

.transaction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.transaction-user {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.2rem;
}

.transaction-amount.positive {
    color: #2ed573;
}

.transaction-amount.negative {
    color: #ff6b6b;
}

.transaction-amount.pending {
    color: #ffa502;
}

.transaction-time {
    color: #9e9e9e;
    font-size: 0.9rem;
}

/* Pending Requests */
.pending-requests {
    max-height: 600px;
    overflow-y: auto;
}

.request-item {
    background: rgba(255, 165, 2, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    border-left: 5px solid #ffa502;
    transition: all 0.3s ease;
}

.request-item:hover {
    background: rgba(255, 165, 2, 0.15);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.request-info strong {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.request-amount {
    font-weight: 700;
    font-size: 1.3rem;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.request-actions form {
    flex: 1;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: #b0bec5;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Users Management */
.users-list {
    max-height: 500px;
    overflow-y: auto;
}

.user-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.user-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-date {
    color: #9e9e9e;
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-actions input[type="password"] {
    width: 150px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cash-amount {
        font-size: 2.5rem;
    }

    .transaction-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .request-actions {
        flex-direction: column;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .user-actions {
        width: 100%;
        flex-direction: column;
    }

    .admin-tabs {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4facfe;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   LOGIN PAGE STYLES
   ============================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    color: #4facfe;
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-box .subtitle {
    color: #b0bec5;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-box .form-group {
    text-align: left;
    margin-bottom: 25px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0bec5;
    font-weight: 500;
}

.login-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.login-box input:focus {
    outline: none;
    border-color: #4facfe;
    background: rgba(79, 172, 254, 0.1);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.login-box .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }

    .login-box h1 {
        font-size: 1.8rem;
    }
}

/* Selection */
::selection {
    background: rgba(79, 172, 254, 0.3);
    color: white;
}
