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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    background: #1a73e8;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 1.2rem;
}

.app-header .user-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.app-nav {
    background: white;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.app-nav a {
    text-decoration: none;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.app-nav a.active, .app-nav a:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #444;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    min-width: 100px;
    transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }

.btn-green { background: #34a853; color: white; }
.btn-yellow { background: #fbbc04; color: #333; }
.btn-red { background: #ea4335; color: white; }
.btn-blue { background: #1a73e8; color: white; }
.btn-gray { background: #e0e0e0; color: #666; }

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 140px;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-control-large {
    font-size: 1.4rem;
    padding: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending { background: #fff3e0; color: #e65100; }
.badge-running { background: #e8f5e9; color: #2e7d32; }
.badge-paused { background: #fff8e1; color: #f57f17; }
.badge-completed { background: #e3f2fd; color: #1565c0; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .container { padding: 10px; }
    .btn-large { width: 100%; }
    .table { font-size: 0.85rem; }
    .table th, .table td { padding: 8px 6px; }
}

.task-card {
    border-left: 4px solid #1a73e8;
    padding: 15px;
}

.task-card.status-running { border-left-color: #34a853; }
.task-card.status-paused { border-left-color: #fbbc04; }
.task-card.status-completed { border-left-color: #ea4335; }

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-card-title {
    font-weight: 600;
    font-size: 1rem;
}

.task-card-info {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.task-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timer {
    font-family: "Courier New", monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a73e8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a73e8;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show { opacity: 1; }
.toast-success { background: #34a853; }
.toast-error { background: #ea4335; }
.toast-info { background: #1a73e8; }
