body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 20px;
    direction: rtl;
    transition: background 0.5s, color 0.5s;
    min-height: 100vh;
}
.dark-mode {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #f0f0f0;
}
.container {
    max-width: 1200px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
}
.dark-mode .container {
    background: rgba(45, 55, 72, 0.9);
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
h1 {
    color: #444;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.dark-mode h1 { color: #f0f0f0; }
.section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.section:hover { transform: translateY(-5px); }
.dark-mode .section { background: rgba(34, 43, 55, 0.7); }
#timer {
    font-size: 72px;
    font-weight: bold;
    color: #e74c3c;
    text-shadow: 3px 3px 10px rgba(231, 76, 60, 0.5);
    animation: blink 2s infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.7; } }
#status { font-size: 18px; margin-bottom: 10px; color: #27ae60; }
.progress-bar {
    width: 100%;
    height: 25px;
    background: #ecf0f1;
    border-radius: 12.5px;
    overflow: hidden;
    margin: 10px 0;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 1s ease-out;
}
.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.start { background: #e74c3c; color: white; }
.pause { background: #f39c12; color: white; }
.skip { background: #3498db; color: white; }
.break { background: #27ae60; color: white; }
.reset { background: #95a5a6; color: white; }
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .grid-container { grid-template-columns: 1fr; }
    #timer { font-size: 48px; }
    .container { padding: 15px; }
}
#task-input { padding: 10px; border-radius: 10px; border: 1px solid #ddd; margin-bottom: 10px; }
.card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
}
.dark-mode .card { background: #4a5568; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { padding: 10px; border: 1px solid #ddd; text-align: center; }
th { background-color: #f2f2f2; color: #333; }
.dark-mode th { background-color: #2d3748; color: #f0f0f0; }
input[type="number"], select { width: 80px; padding: 5px; }
#theme-toggle {
    padding: 10px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #667eea;
    color: white;
}
.dark-mode #theme-toggle { background: #764ba2; }
