:root {
    --bg-color: #e8f4f8;
    --card-bg: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --accent-color: #06b6d4;
    --accent-secondary: #10b981;
    --danger-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --clean-blue: #38bdf8;
    --clean-mint: #5eead4;
    --clean-lavender: #c084fc;
    --border-radius: 24px;
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Three.js Canvas Container */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Main Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 20px 0;
}

.bento-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15);
}

/* Bento Grid Sizes - Using flexible grid */
.bento-item-small { min-width: 250px; }
.bento-item-medium { min-width: 320px; }
.bento-item-large { min-width: 450px; }
.bento-item-full { grid-column: 1 / -1; }

/* Bento Item with Icon */
.bento-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--clean-blue), var(--clean-mint));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
}

.bento-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--clean-blue), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bento-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Floating Particles Effect */
.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: float 4s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
    50% { transform: translateY(-20px) scale(1.1); opacity: 0.8; }
}

/* Login Page Layout */
.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-left, .login-right {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.login-left {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.login-right {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(94, 234, 212, 0.1));
    align-items: center;
    text-align: center;
}

.branding h1 {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clean-blue), var(--clean-mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    line-height: 1.2;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

h1 { font-size: 42px; line-height: 1.2; }
h2 { 
    font-size: 32px; 
    background: linear-gradient(135deg, var(--clean-blue), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h3 { font-size: 24px; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

input[type="text"], 
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

button, .btn {
    background: linear-gradient(135deg, var(--clean-blue), var(--accent-secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

button::before, .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

button:hover::before, .btn:hover::before {
    left: 100%;
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.4);
}

button:active, .btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 8px 16px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 12px 24px rgba(100, 116, 139, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* Contact Info Section */
.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.contact-item {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.7);
}

.contact-item p {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Dashboard Layout */
.dashboard-container {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 50px;
    position: relative;
    min-height: 85vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.header h1 {
    margin-bottom: 10px;
}

.header p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Stats Cards with Bento Style */
.package-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(94, 234, 212, 0.1));
    border: 2px solid rgba(56, 189, 248, 0.2);
    padding: 35px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translate(-50%, -50%); }
    100% { transform: translate(50%, 50%); }
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
    border-color: var(--clean-blue);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--clean-blue), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* History List */
.history-list {
    list-style: none;
    padding: 0;
}

.history-item {
    border: 2px solid rgba(56, 189, 248, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(56, 189, 248, 0.05));
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 20px;
    animation: slideIn 0.5s ease-out;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--clean-blue);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.history-date {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-primary);
}

.history-date span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
}

.history-tasks {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Maid Checklist */
.checklist-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(94, 234, 212, 0.1));
    padding: 35px;
    border-radius: 24px;
    margin-top: 30px;
    border: 2px solid rgba(94, 234, 212, 0.2);
}

.checklist-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.checkbox-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 18px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-weight: 500;
}

.checkbox-item:hover {
    background: linear-gradient(135deg, #fff, rgba(56, 189, 248, 0.1));
    border-color: var(--clean-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.2);
}

.checkbox-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--clean-blue);
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: var(--clean-blue);
    font-weight: 600;
}

/* Footer Contact */
.footer-contact {
    position: absolute;
    bottom: 30px;
    right: 50px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

/* Customer Grid for Maid Selection */
.customer-grid-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(94, 234, 212, 0.1));
    padding: 30px;
    border-radius: 24px;
    border: 2px solid rgba(94, 234, 212, 0.2);
}

.customer-card-select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.customer-card-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.customer-card-select:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.2);
    border-color: var(--clean-blue);
}

.customer-card-select:hover::before {
    opacity: 1;
}

.customer-card-select.selected {
    border-color: var(--clean-blue);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(94, 234, 212, 0.15));
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.3);
}

.customer-card-select h4 {
    margin: 15px 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.customer-card-select span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--clean-blue), var(--clean-mint));
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
}

/* Admin Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

thead {
    background: linear-gradient(135deg, var(--clean-blue), var(--accent-secondary));
}

th {
    text-align: left;
    padding: 18px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    text-align: left;
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 15px;
}

tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

.badge-admin { 
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}
.badge-maid { 
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}
.badge-customer { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Alerts */
.alert {
    padding: 20px 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.4s ease-out;
    border-left: 4px solid;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.alert-error { 
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #dc2626;
    border-left-color: #ef4444;
}

.alert-success { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    color: #16a34a;
    border-left-color: #22c55e;
}

/* Buttons */
.logout-btn {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    width: auto;
    padding: 12px 24px;
    font-size: 15px;
    box-shadow: 0 6px 12px rgba(100, 116, 139, 0.3);
}

.btn-icon, .btn-icon-danger {
    display: inline-block;
    padding: 10px 14px;
    margin: 0 4px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.btn-icon {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(94, 234, 212, 0.15));
    color: var(--clean-blue);
}

.btn-icon:hover {
    background: linear-gradient(135deg, var(--clean-blue), var(--clean-mint));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.3);
}

.btn-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #ef4444;
}

.btn-icon-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* Card */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    border: 2px solid rgba(56, 189, 248, 0.1);
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--text-primary);
}

.mb-20 { margin-bottom: 30px; }

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1400px;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    gap: 20px;
    flex-wrap: wrap;
}

.header-left {
    flex: 1;
    min-width: 250px;
}

.header-left h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.header-left p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
    padding: 12px 20px !important;
    width: auto !important;
}

/* ---------------------------------------------------- */
/* RESPONSIVE DESIGN (Mobile Friendly)                  */
/* ---------------------------------------------------- */

@media (max-width: 992px) {
    .container, .dashboard-container, .glass-container {
        padding: 30px 20px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: flex-start;
    }
    
    .header-left h1 {
        font-size: 28px;
    }
    
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 600px;
        min-height: auto;
    }
    
    .login-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .login-right {
        padding: 40px;
    }

    .branding h1 {
        font-size: 36px;
    }

    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento-item-small,
    .bento-item-medium,
    .bento-item-large {
        grid-column: span 6;
    }

    .package-stats {
        grid-template-columns: 1fr;
    }

    .customer-grid-selection {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    
    .stat-number {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-left, .login-right {
        padding: 30px 25px;
    }

    .branding h1 {
        font-size: 28px;
    }

    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }

    .dashboard-container, .glass-container {
        padding: 25px 18px;
        margin: 20px auto;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .bento-item-small,
    .bento-item-medium,
    .bento-item-large,
    .bento-item-full {
        grid-column: span 1;
    }

    .customer-grid-selection {
        grid-template-columns: repeat(2, 1fr);
    }

    .checklist-group {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }

    table {
        font-size: 13px;
    }

    th, td {
        padding: 12px 8px;
    }

    .footer-contact {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-top: 30px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(0) rotate(0deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1) rotate(180deg); 
        opacity: 1; 
    }
}

/* Success Box & Error Box */
.success-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    color: #16a34a;
    border-left: 4px solid #22c55e;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #dc2626;
    border-left: 4px solid #ef4444;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Data Table Styles */
.data-table {
    border-radius: 16px;
    overflow: hidden;
}
    }

    .login-left {
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        padding: 40px 30px;
        text-align: center;
    }
    
    .login-right {
        padding: 40px 30px;
    }

    .dashboard-container {
        margin: 20px auto;
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 22px !important; }
    h2 { font-size: 18px !important; }
    h3 { font-size: 17px !important; }
    h4 { font-size: 16px !important; }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logout-btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    /* Table on Mobile - Compact */
    .data-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .data-table th, .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        display: none; /* ซ่อน Password column บน mobile */
    }
    
    .footer-contact {
        position: static;
        text-align: center;
        margin-top: 40px;
    }
    
    .customer-grid-selection {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        padding: 15px;
        gap: 15px;
    }
    
    .checklist-group {
        grid-template-columns: 1fr; /* Stack vertically on small mobile */
    }
    
    /* Search Filter Bar Responsive */
    .search-filter-bar {
        flex-direction: column;
    }
    
    .search-filter-bar input[type="text"],
    .search-filter-bar select,
    .search-filter-bar button {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    /* Header Actions Responsive */
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn {
        flex: 1;
        text-align: center;
        justify-content: center;
    }
    
    /* Pagination Mobile */
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px !important;
    }
    
    .login-left, .login-right {
        padding: 25px 15px;
    }
    
    .glass-container {
        padding: 15px;
        border-radius: 14px;
        margin: 8px;
    }
    
    .dashboard-container {
        padding: 12px;
        border-radius: 14px;
        margin: 8px;
        width: calc(100% - 16px);
    }
    
    .card {
        border-radius: 12px;
        padding: 15px;
    }
    
    button, .btn {
        padding: 12px;
        font-size: 13px !important;
    }
    
    /* Header Mobile - Smaller */
    .admin-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .header-left h1 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
    
    .header-left p {
        font-size: 13px !important;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .header-actions .btn {
        width: 100% !important;
        justify-content: center;
    }
    
    /* Bento Grid Mobile - Single Column */
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .bento-item {
        padding: 15px;
        min-width: auto !important;
    }
    
    .bento-item-small,
    .bento-item-medium,
    .bento-item-large,
    .bento-item-full {
        grid-column: auto !important;
    }
    
    /* Table Responsive Wrapper */
    div[style*="overflow-x:auto"] {
        -webkit-overflow-scrolling: touch;
        margin: 0 -8px;
        width: calc(100% + 16px);
        padding: 0 8px;
        box-sizing: border-box;
    }
    
    table {
        border-radius: 12px;
    }
    
    /* Search Filter Compact */
    .search-filter-bar {
        gap: 8px;
    }
    
    /* Pagination Compact */
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
    }
    
    /* Form Groups - Compact */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 13px !important;
        padding: 10px 12px;
    }
    
    /* Badge Smaller */
    .badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    /* Table Actions */
    .btn-icon, .btn-icon-danger {
        padding: 8px 10px;
        font-size: 13px;
    }
}
