/* Base Utilities */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #94a3b8;
    transition: all 0.3s ease;
    border: 1px solid #334155;
}

.tab-btn:hover {
    background: #334155;
    color: #fff;
}

.active-tab {
    background: #f59e0b !important;
    color: #0f172a !important;
    font-weight: bold;
    border-color: #f59e0b !important;
}

/* App 2 Dynamic Headers Input */
.header-date-input {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 11px;
    text-align: center;
    width: 85px;
}
.header-day-input {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 10px;
    text-align: center;
    width: 50px;
    margin-top: 1px;
    font-weight: bold;
}

/* ================= APP 1 STYLES ================= */
#app1 { color: #2c3e50; }
#app1 input, #app1 select { color: #2c3e50; background: #fff; }

.header-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin-bottom: 20px; background: #fff; padding: 15px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.app-logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #ff9800; margin-bottom: 10px; }
.header-container h2 { text-align:center; color: #2c3e50; text-transform: uppercase; margin: 0; font-size: 20px; font-weight: bold; }
.search-container { background: #fff; padding: 12px; margin-bottom: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.card { background:#fff; padding:15px; margin-bottom:20px; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,.15); border-left: 5px solid #ff9800; }
.worker-profile { background: #fff; padding: 15px; margin-bottom: 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.1); border-left: 5px solid #2c3e50; cursor: pointer; transition: transform 0.2s; }
.worker-profile:hover { transform: translateY(-2px); }
.history-item { background: #f8f9fa; padding: 10px; margin-top: 10px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 13px; color: #333; }
#app1 input, #app1 select { width:100%; padding:10px; margin:8px 0; border:1px solid #ddd; border-radius:8px; box-sizing:border-box; font-size: 14px; }
.saveBtn{ background:#007bff; color:white; padding:12px; width:100%; border-radius:8px; font-weight:bold; margin-top:10px; }
.saveBtn:hover{ background: #0056b3; }
.shareBtn{ background:#25D366; color:white; margin-top: 5px; font-size: 13px; padding: 6px; width: 100%; border-radius: 4px; }
.action-buttons { display: flex; gap: 10px; margin-top: 8px; }
.editBtn { background: #ffc107; color: #212529; font-size: 13px; padding: 6px; flex: 1; border-radius: 4px; }
.deleteBtn { background: #dc3545; color: white; font-size: 13px; padding: 6px; flex: 1; border-radius: 4px; }
.clearBtn { background: #dc3545; color: white; margin-top: 20px; font-size: 12px; padding: 8px; width:100%; border-radius:6px; font-weight:bold; }
.section-title { font-size: 18px; color: #fff; margin-top: 25px; margin-bottom: 10px; font-weight: bold; }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 1000; justify-content: center; align-items: center; padding: 15px; }
.modal-card { background: #fff; width: 100%; max-width: 500px; max-height: 85vh; overflow-y: auto; border-radius: 15px; padding: 20px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; background: #dc3545; color: white; border-radius: 50%; width: 30px; height: 30px; text-align: center; line-height: 30px; cursor: pointer; font-weight: bold; }
.file-header { border-bottom: 2px solid #ff9800; padding-bottom: 10px; margin-bottom: 15px; }

/* ================= APP 2 STYLES ================= */
.app2-container { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
#app2 th, #app2 td { border: 1px solid #dcdde1; padding: 6px 4px; text-align: center; }
.input-cell { width: 38px; padding: 3px 2px; border: 1px solid #ddd; border-radius: 3px; text-align: center; font-size: 12px; }
.hazira-input { background-color: #fffdf0; }
.ot-input { background-color: #f0fff4; }
.total-box { font-weight: bold; color: #2c3e50; background: #f8f9fa; padding: 3px 6px; border-radius: 4px; border: 1px solid #ddd; font-size: 12px; }

/* ================= APP 3 STYLES ================= */
.app3-container { background: #fff; padding: 25px; border-radius: 12px; max-width: 800px; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.status-open { color: #2ecc71; font-weight: bold; }
.status-close { color: #e74c3c; font-weight: bold; }

/* ================= APP 4 STYLES ================= */
.glass { background: rgba(30, 41, 59, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08); }
.attendance-input { background-color: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 6px; padding: 6px 0; font-weight: bold; width: 100%; text-align: center; transition: all 0.2s ease; }
.attendance-input:focus { background-color: rgba(245, 158, 11, 0.35) !important; border-color: #f59e0b !important; color: #ffffff !important; }