* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background: #0f172a;
    font-family: 'Inter', system-ui, sans-serif;
    padding: 1.5rem;
    color: #e2e8f0
}

.container {
    max-width: 95vw;
    margin: 0 auto
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.header p {
    color: #94a3b8;
    font-size: .85rem;
    margin-top: .25rem
}

.stats-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem
}

.stat-card {
    background: #1e293b;
    padding: .5rem 1rem;
    border-radius: 12px;
    border: 1px solid #334155;
    font-size: .8rem;
    cursor: pointer;
    transition: all 0.1s
}

.stat-card:hover {
    background: #334155;
    transform: translateY(-1px)
}

.stat-card.active {
    background: #3b82f6;
    border-color: #60a5fa
}

.stat-number {
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: .3rem
}

.action-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center
}

.filter-group {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.btn {
    background: #334155;
    border: none;
    padding: .3rem 1rem;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all .1s
}

.btn-primary {
    background: #3b82f6
}

.btn-primary:hover {
    background: #2563eb
}

.btn-success {
    background: #2d6a4f
}

.btn-success:hover {
    background: #1b4d3e
}

.btn-warning {
    background: #b45309
}

.btn-danger {
    background: #7f1a1a
}

.btn-sm {
    padding: .2rem .8rem;
    font-size: .75rem
}

.dashboard {
    /* display: grid; */
    grid-template-columns: 340px 1fr;
    gap: 1.5rem
}

@media (max-width:900px) {
    .dashboard {
        grid-template-columns: 1fr
    }
}

.task-form {
    background: #1e293b;
    border-radius: 20px;
    padding: 1.25rem;
    border: 1px solid #334155;
    position: sticky;
    top: 1rem;
    max-height: 90vh;
    overflow-y: auto
}

.task-form h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #a5f3fc
}

.form-group {
    margin-bottom: 1rem
}

.form-group label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: .25rem
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    padding: .6rem .8rem;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: .85rem
}

.form-group textarea {
    min-height: 60px;
    resize: vertical
}

.board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem
}

.column {
    background: #1e293b;
    border-radius: 20px;
    min-width: 300px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    max-height: 70vh
}

.column-header {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    font-weight: 600;
    display: flex;
    justify-content: space-between
}

.task-list {
    padding: .75rem;
    flex: 1;
    overflow-y: auto;
    min-height: 400px
}

.task-card {
    background: #0f172a;
    border-radius: 16px;
    padding: .9rem;
    margin-bottom: .75rem;
    border-left: 3px solid;
    cursor: pointer
}

.task-card:hover {
    transform: translateX(2px);
    background: #1a2538
}

.task-title {
    font-weight: 500;
    margin-bottom: .3rem;
    font-size: .9rem
}

.task-desc {
    font-size: .75rem;
    color: #94a3b8;
    margin-bottom: .5rem
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    font-size: .7rem;
    margin-top: .3rem
}

.priority {
    font-size: .65rem;
    padding: .15rem .5rem;
    border-radius: 20px
}

.priority-high {
    background: #7f1a1a;
    color: #fecaca
}

.priority-medium {
    background: #854d0e;
    color: #fef08a
}

.priority-low {
    background: #14532d;
    color: #bbf7d0
}

.dep-badge {
    background: #1e3a5f;
    padding: .1rem .4rem;
    border-radius: 12px;
    font-size: .6rem
}

.task-actions {
    display: flex;
    gap: .5rem;
    margin-top: .5rem;
    justify-content: flex-end
}

.icon-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: .7rem;
    padding: .2rem .5rem
}

.icon-btn:hover {
    color: #f87171
}

.status-pending {
    border-left-color: #f97316
}

.status-in-progress {
    border-left-color: #3b82f6
}

.status-review {
    border-left-color: #a855f7
}

.status-done {
    border-left-color: #22c55e
}

.status-blocked {
    border-left-color: #ef4444
}

.status-archived {
    border-left-color: #64748b
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000
}

.modal-content {
    background: #1e293b;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 550px;
    width: 90%;
    border: 1px solid #475569;
    max-height: 85vh;
    overflow-y: auto
}

.modal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem
}

.close {
    cursor: pointer;
    font-size: 1.5rem
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d6a4f;
    color: white;
    padding: .5rem 1rem;
    border-radius: 40px;
    font-size: .8rem;
    z-index: 1000;
    animation: fadeOut 3s forwards
}

@keyframes fadeOut {
    0% {
        opacity: 1
    }

    70% {
        opacity: 1
    }

    100% {
        opacity: 0;
        visibility: hidden
    }
}

.sprint-selector {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: .7rem;
    color: #475569
}

select,
input,
textarea {
    font-family: inherit
}

hr {
    margin: .5rem 0;
    border-color: #334155
}

.timer-danger {
    background: #7f1a1a;
    color: #fecaca;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-warning {
    background: #854d0e;
    color: #fef08a;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-ok {
    background: #14532d;
    color: #bbf7d0;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 12px;
}

.timer-btn:hover {
    opacity: 0.8;
}

.timer-display {
    font-family: monospace;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
}


/* Timer display styles */
.digital-timer {
    font-family: 'Courier New', 'SF Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: #0f172a;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 6px;
    text-align: center;
}

/* Lateness color coding based on overtime percentage */
.lateness-0 {
    color: #22c55e;
    border-left: 3px solid #22c55e;
}

.lateness-25 {
    color: #facc15;
    border-left: 3px solid #facc15;
}

.lateness-50 {
    color: #f97316;
    border-left: 3px solid #f97316;
}

.lateness-75 {
    color: #ef4444;
    border-left: 3px solid #ef4444;
}

.lateness-100 {
    color: #7f1a1a;
    border-left: 3px solid #7f1a1a;
    background: #1e1b1b;
}

/* Timer danger/warning/ok (kept for backward compatibility) */
.timer-danger {
    background: #7f1a1a;
    color: #fecaca;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-warning {
    background: #854d0e;
    color: #fef08a;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-ok {
    background: #14532d;
    color: #bbf7d0;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: monospace;
    font-weight: bold;
}

.timer-display {
    font-family: monospace;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Task card hover effect */
.task-card {
    transition: all 0.2s ease;
}

.task-card:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.start-task-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Dependency button styling */
.dep-btn {
    background: #1e3a5f;
    color: #60a5fa;
    border-radius: 12px;
    padding: 2px 8px;
    margin-right: auto;
}

.dep-btn:hover {
    background: #1e4b6e;
    color: #93c5fd;
}

/* Blocked task card styling */
.task-card.status-blocked {
    border-left-color: #ef4444;
    background: rgba(127, 29, 29, 0.1);
}

/* Dependency indicator on blocked tasks */
.task-card.status-blocked .task-title::before {
    content: "🚫 ";
    font-size: 0.8rem;
}


/* Make task cards wider */
.column {
    min-width: 450px;  /* Increased from 300px (50% wider) */
    max-width: 500px;
}

.task-card {
    padding: 1rem;
}

/* Adjust task meta to wrap better */
.task-meta {
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Make form rows responsive */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .column {
        min-width: 320px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

.header img{
  background-color: aliceblue;
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
}

.btn-secondary {
    background: #334155;
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all .1s;
}

.btn-secondary:hover {
    background: #475569;
}

/* Autocomplete Dropdown Styles */
.autocomplete-dropdown {
    position: absolute;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.autocomplete-option {
    padding: 8px 12px;
    cursor: pointer;
    color: #e2e8f0;
    font-size: 0.85rem;
    border-bottom: 1px solid #334155;
    transition: background-color 0.1s ease;
}

.autocomplete-option:last-child {
    border-bottom: none;
}

.autocomplete-option:hover {
    background-color: #334155;
}

/* Scrollbar styling */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Floating Ready Queue Button */
.ready-queue-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e4b6e);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-gentle 2s infinite;
}

.ready-queue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ready-queue-btn.urgent {
    background: linear-gradient(135deg, #ef4444, #7f1a1a);
    animation: pulse-fast 1s infinite;
}

.ready-queue-btn.warning {
    background: linear-gradient(135deg, #f59e0b, #854d0e);
    animation: pulse-medium 1.5s infinite;
}

.ready-queue-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.ready-queue-icon {
    font-size: 1.2rem;
    color: white;
    margin-top: 2px;
}

@keyframes pulse-gentle {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(59,130,246,0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
}

@keyframes pulse-medium {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-fast {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}