/* ==========================================================
   Taskr — Clean Card Design System
   Applied globally to all pages via header.php
   ========================================================== */

/* ---------- Global base ---------- */
body {
    background: #f0f4f8;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
}

/* ---------- Navbar ---------- */
.navbar {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0.65rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a202c !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    border-radius: 8px;
}


/* ---------- Shared card ---------- */
.clean-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.clean-card-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #eef1f5;
}

.clean-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.clean-card-title i {
    color: #4a90d9;
    margin-right: 0.5rem;
}

.clean-card-body {
    padding: 1.5rem 2rem 2rem;
}

.page-wrapper {
    padding: 2rem 1rem;
}


/* ---------- Labels ---------- */
label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.3rem;
}


/* ---------- Form controls ---------- */
.form-control {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 0.55rem 0.9rem;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
    outline: none;
}

.form-control::placeholder {
    color: #a0aec0;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.form-control[readonly] {
    background: #f7fafc;
    color: #4a5568;
}


/* ---------- Buttons (shared) ---------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary {
    background: #4a90d9;
    border-color: #4a90d9;
    box-shadow: 0 2px 4px rgba(74, 144, 217, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #3d7ec7;
    border-color: #3d7ec7;
    box-shadow: 0 4px 10px rgba(74, 144, 217, 0.3);
    transform: translateY(-1px);
}

.btn-success {
    background: #48bb78;
    border-color: #48bb78;
    box-shadow: 0 2px 4px rgba(72, 187, 120, 0.25);
}

.btn-success:hover,
.btn-success:focus {
    background: #38a169;
    border-color: #38a169;
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.35);
}

.btn-danger {
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-outline-danger {
    border-radius: 10px;
    font-weight: 500;
}


/* ---------- Dividers ---------- */
.task-divider {
    margin: 1.5rem 0;
    border-top: 1px solid #eef1f5;
    border-bottom: none;
}


/* ---------- Assignees section (task page) ---------- */
.assignees-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.assignees-header label {
    margin-bottom: 0;
}

.add-more {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.add-more:hover {
    transform: scale(1.1);
}

.assignee-row,
.before-add-more .control-group {
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    margin-top: 0.5rem !important;
    transition: border-color 0.2s ease;
}

.assignee-row:hover,
.before-add-more .control-group:hover {
    border-color: #cbd5e0;
}

.assignee-row .form-control,
.before-add-more .control-group .form-control {
    border: none;
    background: transparent;
    padding-left: 0.5rem;
}

.assignee-row .form-control:focus,
.before-add-more .control-group .form-control:focus {
    box-shadow: none;
}

/* Status indicator */
.statusbuttonclass,
.btn-secondary.statusbuttonclass {
    border: none;
    background: transparent !important;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}

.statusbuttonclass .fa-star-of-life {
    color: #a0aec0;
}

.btn-success.statusbuttonclass {
    background: transparent !important;
}

.statusbuttonclass .fa-check {
    color: #48bb78;
    font-size: 1rem;
}

.remove {
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
}


/* ---------- Task actions bar ---------- */
.task-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eef1f5;
}


/* ---------- Progress widget ---------- */
.progress-widget {
    padding: 0.25rem 0;
}

.progress-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4a90d9;
    margin-bottom: 0.15rem;
}

.progress-percentage {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.progress-widget .progress {
    height: 8px;
    border-radius: 4px;
    background: #edf2f7;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-widget .progress-bar {
    background: linear-gradient(90deg, #4a90d9, #48bb78);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-detail {
    font-size: 0.82rem;
    color: #718096;
    font-weight: 500;
}


/* ---------- Modal ---------- */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #eef1f5;
    padding: 1.2rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eef1f5;
    padding: 1rem 1.5rem;
}

.modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
}


/* ---------- Footer ---------- */
footer.footer {
    background: #f0f4f8 !important;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}

footer.footer a {
    color: #4a90d9;
    font-weight: 500;
    text-decoration: none;
}

footer.footer a:hover {
    color: #3d7ec7;
    text-decoration: underline;
}

footer.footer .text-muted {
    color: #a0aec0 !important;
}


/* ==========================================================
   LANDING PAGE — Hero + Features
   ========================================================== */

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #4a90d9 0%, #667eea 50%, #764ba2 100%);
    padding: 5rem 1rem 4rem;
    text-align: center;
    color: #fff;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-form {
    max-width: 540px;
    margin: 0 auto;
}

.hero-form .form-row {
    align-items: stretch;
}

.hero-form .form-control {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1.1rem;
    font-size: 1rem;
    border-radius: 12px;
    height: 100%;
}

.hero-form .form-control:focus {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 255, 255, 0.3);
    border-color: transparent;
}

.hero-form .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: #fff;
    color: #4a90d9;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.hero-form .btn:hover {
    background: #f7fafc;
    color: #3d7ec7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .hero-section {
        padding: 7rem 1rem 6rem;
    }

    .hero-section h1 {
        font-size: 2.6rem;
    }
}

/* Features grid */
.features-section {
    padding: 4rem 1rem;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.feature-icon-blue {
    background: linear-gradient(135deg, #4a90d9, #667eea);
}

.feature-icon-green {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.92rem;
    color: #718096;
    margin-bottom: 0;
    line-height: 1.5;
}


/* ==========================================================
   ASSIGNMENT PAGE
   ========================================================== */

/* Read-only info rows */
.info-row {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef1f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #718096;
    width: 110px;
    flex-shrink: 0;
}

.info-value {
    font-size: 0.92rem;
    color: #2d3748;
    word-break: break-word;
}

/* State toggle button */
.state-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.state-btn:hover {
    transform: translateY(-1px);
}

.state-btn-done {
    background: #48bb78;
    border-color: #48bb78;
    color: #fff;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.state-btn-done:hover {
    background: #38a169;
    box-shadow: 0 4px 14px rgba(72, 187, 120, 0.35);
}

.state-btn-undo {
    background: #fc5c65;
    border-color: #fc5c65;
    color: #fff;
    box-shadow: 0 2px 8px rgba(252, 92, 101, 0.3);
}

.state-btn-undo:hover {
    background: #eb4d4b;
    box-shadow: 0 4px 14px rgba(252, 92, 101, 0.35);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 575.98px) {

    .clean-card-header,
    .clean-card-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .task-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .task-actions .btn {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .info-label {
        width: auto;
    }
}