/* ============================================================
   mailai.in — Time Tracker CSS
   style/tracker.css
============================================================ */

/* Hero Section & Filter */
.hours-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 16px 24px; 
    margin-bottom: 16px; 
    border-radius: 12px; 
    position: relative; 
    overflow: hidden;
    color: white;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.hours-hero h1 {
    font-size: 1.4rem; 
    margin: 0; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
.hours-hero p {
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.85); 
    margin: 6px 0 0;
}

/* Month Dropdown */
.month-filter-wrap {
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}
.month-select {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 30px 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}
.month-select option {
    background: #0f172a;
    color: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.stat-sub {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}
.hours-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: #fff;
}
.hours-table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}
.hours-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.hours-table tr:last-child td {
    border-bottom: none;
}
.hours-table tr:hover td {
    background: #f8fafc;
}

/* Typography & Badges */
.text-muted {
    color: #cbd5e1;
}
.today-tag {
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
}

/* Hours Badges */
.hours-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.badge-completed {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.badge-missed {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.badge-active {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

/* Empty State */
.empty-state {
    padding: 40px 20px !important;
}

/* --- PUBLIC OVERLAY & BLUR STYLES --- */
.public-blur {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}
.public-overlay-container {
    position: relative;
}
.public-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 8px;
}
.public-cta-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    border: 2px solid #3b82f6;
    max-width: 400px;
}
.public-cta-box h3 {
    margin: 0 0 10px 0;
    color: #1e293b;
}
.public-cta-box p {
    color: #64748b;
    margin-bottom: 20px;
}
.cta-btn {
    background: #3b82f6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.2s;
}
.cta-btn:hover { background: #2563eb; color: white; }

/* Pulse Animation */
@keyframes pulse-blue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Time Input Edits */
.time-edit-input { 
    border: 1px solid #cbd5e1; 
    background: #ffffff; 
    color: #334155; 
    font-size: 0.9rem; 
    padding: 4px 6px; 
    border-radius: 6px; 
}
.time-edit-input.locked { 
    border: 1px solid transparent; 
    background: transparent; 
    cursor: default; 
    padding: 4px 0; 
}
.time-edit-input.locked::-webkit-calendar-picker-indicator { 
    display: none; 
}
.row-action-btn { 
    color: white; 
    border: none; 
    padding: 6px 14px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    cursor: pointer; 
    width: 75px; 
}
.edit-btn { background-color: #64748b; }
.save-btn { background-color: #10b981; }

/* SEO Content Section */
.seo-content-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.seo-content-section h2 { 
    font-size: 1.5rem; 
    color: #1e293b; 
    margin-top: 0; 
}
.faq-item { margin-bottom: 20px; }
.faq-item h4 { margin: 0 0 5px 0; color: #334155; }
.faq-item p { margin: 0; color: #64748b; font-size: 0.95rem; }

/* ============================================================
   RESPONSIVE DESIGN GRID
============================================================ */

/* Tablet / Laptop */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content { flex-direction: column; align-items: flex-start; }
    .hours-table th, .hours-table td { padding: 12px 10px; font-size: 0.8rem; }
}

/* Small Phone */
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 14px 16px; }
    .stat-value { font-size: 1.3rem; }
}