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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar h1 {
    font-size: 20px;
    font-weight: 600;
}

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navbar .nav-right span {
    font-size: 14px;
    opacity: 0.9;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.navbar a:hover {
    background: rgba(255,255,255,0.15);
}

.navbar .btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.auth-container {
    max-width: 420px;
    margin: 80px auto;
    padding: 0 24px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a73e8;
    border-bottom: 2px solid #e8eaed;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    background: white;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-success {
    background: #34a853;
    color: white;
}

.btn-success:hover {
    background: #2d8f47;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

.btn-danger:hover {
    background: #c5352a;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-full {
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
    border: 1px solid #f5c6cb;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dashboard-header h2 {
    font-size: 22px;
    color: #333;
}

.date-display {
    font-size: 16px;
    color: #ea4335;
    font-weight: 600;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter input[type="date"],
.date-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.status-table thead {
    background: #f8f9fa;
}

.status-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.status-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.status-table tbody tr:hover {
    background: #f8f9ff;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-wip {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-blocked {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #e2e3e5;
    color: #383d41;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #34a853;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #34a853;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a73e8;
}

.stat-card .stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.table-responsive {
    overflow-x: auto;
}

.actions-cell {
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a73e8;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .navbar {
        padding: 10px 16px;
    }

    .navbar h1 {
        font-size: 16px;
    }
}

.auth-links {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.auth-links a {
    color: #1a73e8;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}
