* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --maincolor:#4f4f4f;
    --maintextcolor:#bea100;
    --secondcolor:#353535;
}
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    color: #333;
    background-color: var(--secondcolor);
}

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

/* Authentication Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.auth-card {
    position: absolute;
    background: black;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50% ,-50%);
}

.app-title {
    text-align: center;
    color: var(--maintextcolor);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #9f9f9f;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--secondcolor);
    color: var(--maintextcolor);
    width: 100%;
}

.btn-primary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondcolor);
    color:var(--maintextcolor);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

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

.btn-success {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-success:hover {
    background: #218838;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #999999;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
}

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

/* Main App Styles */
.app-container {
    background: rgb(32, 32, 32);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.app-header h1 {
    color: var(--maintextcolor);
    font-size: 2.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 600;
    color: white;
}

/* Stats Dashboard */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: var(--maincolor);
    color: var(--maintextcolor);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Add Task Form */
.add-task-container {
    background: black;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.add-task-container h2 {
    color: var(--maintextcolor);
    margin-bottom: 20px;
}

.task-form {
    display: grid;
    gap: 15px;
}

.task-form #task-title{
    padding: 10px;
    border-radius: 10px;
    background-color: var(--maincolor);
    color: white;
}
.task-form textarea {
    min-height: 80px;
    resize: vertical;
    background-color: var(--maincolor);
    color: white;
    border-radius: 10px;
}

.task-form #task-priority{
    padding: 10px;
    background-color: var(--maincolor);
    color: white;
    border-radius: 10px;
}

/* Filters */
.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: black;
    border-radius: 12px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--maincolor);
    color: white;
}

/* Tasks List */
.tasks-container h2 {
    color: var(--maintextcolor);
    margin-bottom: 20px;
}

.tasks-list {
    display: grid;
    gap: 15px;
}

.task-item {
    background: black;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.task-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.task-item.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.task-priority {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-high {
    background: #dc3545;
    color: white;
}

.priority-medium {
    background: #ffc107;
    color: #333;
}

.priority-low {
    background: #28a745;
    color: white;
}

.task-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.no-tasks {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.modal-content h2{
    margin-bottom: 5px;
}

.modal-content .task-form input,textarea,select{
    padding: 10px;
    background-color: var(--maincolor);
    color: white;
    border-radius: 10px;
}
/* Message Styles */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .app-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

    .filters-container {
        grid-template-columns: 1fr;
    }

    .task-header {
        flex-direction: column;
        gap: 10px;
    }

    .task-actions {
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }
}