:root {
    --primary: #2d3748;
    --secondary: #4a5568;
    --accent: #4299e1;
    --danger: #f56565;
    --success: #48bb78;
    --warning: #ed8936;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-700: #4a5568;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--gray-100);
}

/* Layout */
.hidden { display: none !important; }

/* Login Container */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem;
}

#login-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#login-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    filter: brightness(0.9);
}

/* Dashboard */
#dashboard {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 1.75rem;
    color: var(--primary);
}

nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.5rem 1rem;
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.transaction-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#user-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#search-users-btn, #reset-search-btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#reset-search-btn {
    background-color: #f44336;
}
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--gray-100);
    font-weight: 600;
    color: var(--primary);
}

/* Toggle Switches */
.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 3rem;
    height: 1.5rem;
    background-color: var(--gray-300);
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: white;
    top: 0.125rem;
    left: 0.125rem;
    transition: transform 0.2s;
}

input[type="checkbox"]:checked {
    background-color: var(--success);
}

input[type="checkbox"]:checked::before {
    transform: translateX(1.5rem);
}

.box-full-line {
width: 100%;
height: 2px;
background-color: var(--gray-300);
}

/* Buttons */
.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-secondary {
    background-color: var(--gray-300);
    color: var(--gray-700);
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 200px;
}

/* Pin Container */
.pin-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.pin-container input {
    flex: 1;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Error Messages */
#login-error,
#pin-error {
    color: var(--danger);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #dashboard {
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row input,
    .form-row button {
        width: 100%;
    }
}
