﻿:root {
    --primary: #4361ee;
    --primary-light: #eef2ff;
    --success: #06d6a0;
    --danger: #ef476f;
    --bg: #f3f4f6;
    --card: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* Header */
.main-header {
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

h1 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
}

.date-chip {
    background: var(--card);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
}

/* Card Style */
.card {
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.8);
    transition: transform 0.2s;
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

    .card-header h3 {
        margin: 0;
        font-size: 1.05rem;
    }

/* Time Section */
.time-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.t-field {
    flex: 1;
}

    .t-field label {
        display: block;
        font-size: 0.75rem;
        color: var(--text-light);
        margin-bottom: 6px;
    }

    .t-field input {
        width: 100%;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        text-align: center;
        font-weight: 700;
        background: #f9fafb;
        cursor: pointer;
        font-size: 1.1rem;
    }

.duration-box {
    background: var(--primary-light);
    color: var(--primary);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
}

/* Task Items */
.task-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

    .task-item input {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        font-size: 0.9rem;
    }

        .task-item input:focus {
            border-color: var(--primary);
            outline: none;
        }

.btn-remove {
    background: #fff1f2;
    color: var(--danger);
    border: none;
    border-radius: 8px;
    width: 38px;
    cursor: pointer;
}

/* Buttons */
.btn-minimal {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    margin-top: 10px;
}

    .btn-minimal:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

.btn-send-final {
    width: 100%;
    padding: 18px;
    background: var(--text-dark);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 25px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    font-size: 1.5rem;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 50%;
}

.user-name {
    display: block;
    font-weight: bold;
}

.status-online {
    font-size: 0.7rem;
    color: var(--success);
}

.btn-exit {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}



/* استایل دکمه حذف تسک */
.btn-remove {
    background: #fff1f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .btn-remove:hover {
        background: #ef4444;
        color: white;
        transform: rotate(90deg);
    }