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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen.hidden {
    display: none;
}

/* Login Styles */
.login-container {
    max-width: 400px;
    margin: auto;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.login-container form {
    margin: 30px 0;
}

.login-container input,
.login-container select {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
}

.login-container button:hover {
    background: #45a049;
}

/* Main App Styles */
.header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 24px;
}

.header-actions button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

.profile-section {
    padding: 20px;
    background: #f8f9fa;
}

.profile-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
}

.user-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.user-details p {
    color: #666;
    font-size: 14px;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-switch.active {
    background: #4CAF50;
}

.toggle-slider {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(30px);
}

/* Jobs Section */
.jobs-section {
    padding: 20px;
    flex: 1;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.notification-dot.hidden {
    display: none;
}

.job-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #4CAF50;
    animation: slideIn 0.3s ease-out;
}

.job-card.new {
    border-left-color: #ff4444;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.job-category.listrik {
    background: #fff3e0;
    color: #f57c00;
}

.job-category.ac {
    background: #e8f5e8;
    color: #4caf50;
}

.job-category.plumbing {
    background: #f3e5f5;
    color: #9c27b0;
}

.job-category.cleaning {
    background: #e3f2fd;
    color: #2196f3;
}

.timestamp {
    color: #666;
    font-size: 12px;
}

.customer-info {
    margin: 15px 0;
}

.customer-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.customer-location {
    color: #666;
    font-size: 14px;
}

.job-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
    margin: 15px 0;
    border-left: 3px solid #ddd;
}

.job-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-decline {
    background: #f44336;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* WhatsApp Setup */
.whatsapp-setup {
    max-width: 400px;
    margin: auto;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

#qr-container {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

#qr-container img {
    max-width: 250px;
}

#whatsapp-status {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .job-actions {
        flex-direction: column;
    }
    
    .btn {
        margin-bottom: 10px;
    }
}