
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--primary-color: #010101e1;
--primary-dark: #1a1a1ae2;
--secondary-color: #f1f5f9;
--accent-color: #616464a7;
--danger-color: #ef4444;
--warning-color: #db760b;
--text-primary: #151515;
--text-secondary: #64748b;
--bg-primary: #ffffff;
--bg-secondary: #ffffff;
--border-color: #e2e8f0;
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.priority-btn.low.active {
background-color: #15803d !important; 

}
[data-theme="dark"] {
    
  --primary-dark: rgba(17, 16, 16, 0.611);        
  --secondary-color: #000000;     
  --text-primary: #565555;       
  --text-secondary: #d6d1d1aa;     
  --bg-primary: #0101017b;          
  --bg-secondary: #1a1a1a;        
  --border-color: #333333;        
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
transition: all 0.3s ease;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.header {
background: var(--bg-primary);
border-radius: 20px;
padding: 2rem;
margin-bottom: 2rem;
box-shadow: var(--shadow-lg);
backdrop-filter: blur(10px);
border: 1px solid var(--border-color);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.75rem;
font-weight: 800;
color: var(--primary-color);
}
.logo i {
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header-controls {
display: flex;
gap: 1rem;
align-items: center;
}
.theme-toggle {
background: var(--secondary-color);
border: none;
padding: 0.75rem;
border-radius: 12px;
cursor: pointer;
color: var(--text-primary);
font-size: 1.2rem;
transition: all 0.3s ease;
box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
background: var(--primary-color);
color: white;
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.stat-card {
background: var(--bg-primary);
padding: 1.5rem;
border-radius: 16px;
box-shadow: var(--shadow-md);
border: 1px solid var(--border-color);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}
.stat-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-xl);
}
.stat-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.stat-info h3 {
font-size: 2rem;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 0.25rem;
}
.stat-info p {
color: var(--text-secondary);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.stat-icon {
font-size: 2.5rem;
opacity: 0.7;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.main-content {
display: grid;
grid-template-columns: 1fr 400px;
gap: 2rem;
}
@media (max-width: 1024px) {
.main-content {
grid-template-columns: 1fr;
}
}
.task-form-card {
background: var(--bg-primary);
padding: 2rem;
border-radius: 20px;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color);
height: fit-content;
position: sticky;
top: 2rem;
}
.form-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.75rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--text-primary);
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.form-input, .form-select, .form-textarea {
width: 100%;
padding: 0.875rem 1rem;
border: 2px solid var(--border-color);
border-radius: 12px;
font-size: 1rem;
background: var(--bg-secondary);
color: var(--text-primary);
transition: all 0.3s ease;
font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
background: var(--bg-primary);
}
.form-textarea {
resize: vertical;
min-height: 100px;
}
.priority-buttons {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
}
.priority-btn {
flex: 1;
padding: 0.75rem;
border: 2px solid var(--border-color);
background: var(--bg-secondary);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.priority-btn.active {
border-color: var(--primary-color);
color: white;
}
.priority-btn.low.active {
background: var(--accent-color);
border-color: var(--accent-color);
}
.priority-btn.medium.active {
background: var(--warning-color);
border-color: var(--warning-color);
}
.priority-btn.high.active {
background: var(--danger-color);
border-color: var(--danger-color);
}
.form-submit {
width: 100%;
padding: 1rem 2rem;
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: white;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 0.5px;
box-shadow: var(--shadow-md);
}
.form-submit:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.form-submit:active {
transform: translateY(0);
}
.tasks-section {
background: var(--bg-primary);
border-radius: 20px;
padding: 2rem;
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color);
}
.tasks-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
flex-wrap: wrap;
gap: 1rem;
}
.tasks-title {
font-size: 1.75rem;
font-weight: 700;
color: var(--text-primary);
display: flex;
align-items: center;
gap: 0.75rem;
}
.filter-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
.filter-btn {
padding: 0.5rem 1rem;
border: 2px solid var(--border-color);
background: var(--bg-secondary);
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-secondary);
}
.filter-btn.active {
background: var(--primary-color);
border-color: var(--primary-color);
color: white;
}
.search-box {
padding: 0.75rem 1rem;
border: 2px solid var(--border-color);
border-radius: 8px;
background: var(--bg-secondary);
color: var(--text-primary);
font-size: 0.9rem;
width: 200px;
transition: all 0.3s ease;
}
.search-box:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.tasks-list > * + * {
margin-top: 1rem;
}
.task-item {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 16px;
padding: 1.5rem;
margin-bottom: 1rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.task-item::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
transition: all 0.3s ease;
}
.task-item.priority-low::before {
background: var(--accent-color);
}
.task-item.priority-medium::before {
background: var(--warning-color);
}
.task-item.priority-high::before {
background: var(--danger-color);
}
.task-item:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
border-color: var(--primary-color);
}
.task-item.completed {
opacity: 0.7;
background: var(--bg-primary);
}
.task-item.completed .task-title {
text-decoration: line-through;
color: var(--text-secondary);
}

.task-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}

.task-main {
flex: 1;
}

.task-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
line-height: 1.4;
}

.task-description {
color: var(--text-secondary);
margin-bottom: 1rem;
line-height: 1.5;
}

.task-meta {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
font-size: 0.875rem;
}

.task-category, .task-priority, .task-due {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-weight: 500;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.task-category {
background: var(--primary-color);
color: white;
}
.task-priority.low {
background: var(--accent-color);
color: white;
}
.task-priority.medium {
background: var(--warning-color);
color: white;
}
.task-priority.high {
background: var(--danger-color);
color: white;
}

.task-due {
background: var(--bg-primary);
color: var(--text-secondary);
border: 1px solid var(--border-color);
}

.task-actions {
display: flex;
gap: 0.5rem;
align-items: flex-start;
margin-left: 1rem;
}

.task-btn {
padding: 0.75rem;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
min-width: 44px;
height: 44px;
}

.task-btn.complete {
    background: green !important;
    color: white !important;
   
}


.task-btn.edit {
background: var(--warning-color);
color: white;
}

.task-btn.delete {
background: var(--danger-color);
color: white;
}

.task-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}


.empty-state {
text-align: center;
padding: 4rem 2rem;
color: var(--text-secondary);
}

.empty-state i {
font-size: 4rem;
margin-bottom: 1rem;
opacity: 0.5;
}

.empty-state h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: var(--text-primary);
}


.progress-container {
margin-bottom: 2rem;
}

.progress-label {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
}

.progress-bar {
width: 100%;
height: 8px;
background: var(--border-color);
border-radius: 4px;
overflow: hidden;
}

.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
border-radius: 4px;
transition: width 0.3s ease;
}

 
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px);
z-index: 9999;
opacity: 0;
transition: opacity 0.3s ease;
overflow-y: auto;
padding: 1rem;
}

.modal.show {
opacity: 1;
}

.modal-content {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
background: var(--bg-primary);
padding: 2rem;
border-radius: 20px;
width: 100%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: var(--shadow-xl);
border: 1px solid var(--border-color);
transition: transform 0.3s ease;
margin: auto;
}

.modal.show .modal-content {
transform: translate(-50%, -50%) scale(1);
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}

.modal-title {
font-size: 1.5rem;
font-weight: 700;
color: var(--text-primary);
}

.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--text-secondary);
padding: 0.5rem;
border-radius: 8px;
transition: all 0.3s ease;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}

.modal-close:hover {
background: var(--danger-color);
color: white;
}

 
@media (max-width: 768px) {
.container {
padding: 1rem;
}

.header-content {
flex-direction: column;
text-align: center;
}

.stats-grid {
grid-template-columns: 1fr;
}

.tasks-header {
flex-direction: column;
align-items: stretch;
}

.filter-controls {
flex-wrap: wrap;
justify-content: center;
}

.search-box {
width: 100%;
margin-top: 1rem;
}

.task-header {
flex-direction: column;
gap: 1rem;
}

.task-actions {
align-self: stretch;
justify-content: center;
margin-left: 0;
margin-top: 1rem;
}

.modal {
padding: 0.5rem;
}

.modal-content {
max-height: 95vh;
padding: 1.5rem;
}
}

  
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.task-item {
animation: slideInUp 0.5s ease-out;
}

 
::-webkit-scrollbar {
width: 8px;
}

::-webkit-scrollbar-track {
background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
background: var(--primary-dark);
}
