:root {
    --primary-color: #1f7def;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --text-color: #1f2937;
    --background-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

header {
    width: 100%;
    background: linear-gradient(135deg, #1f7def, #1d4ed8);
    color: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    padding: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-display {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

main {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.task-submission,
.task-list {
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin: 0 !important;
    width: 100% !important;
}

.task-submission:hover,
.task-list:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"],
textarea,
input[type="datetime-local"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

input[type="text"]:focus,
textarea:focus,
input[type="datetime-local"]:focus,
select:focus {
    outline: none;
    border-color: #1f7def;
    box-shadow: 0 0 0 3px rgba(31, 125, 239, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    background-color: var(--card-bg);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

select:invalid {
    color: #6b7280;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 100px;
    height: 36px;
    white-space: nowrap;
    text-align: center;
}

button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.task-item {
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background: var(--card-bg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    padding-left: 3rem !important;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.task-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.task-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.task-meta div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-meta strong {
    font-weight: 600;
    color: var(--text-color);
}

.deadline-completed {
    color: #6b7280;
    font-weight: normal;
}

.deadline-near {
    color: var(--danger-color);
    font-weight: 600;
}

.deadline-far {
    color: var(--success-color);
    font-weight: 600;
}

.deadline-missed {
    color: var(--danger-color);
    font-weight: 800;
    animation: blink 1s infinite;
    margin-left: 4px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    height: 36px;
    white-space: nowrap;
    text-align: center;
}

.status-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.status-unassigned {
    background-color: #f3f4f6;
    color: #6b7280;
}

.status-notstarted {
    background-color: #fef3c7;
    color: #d97706;
}

.status-inprogress {
    background-color: #dbeafe;
    color: #1f7def;
}

.status-completed {
    background-color: #dcfce7;
    color: #16a34a;
}

.accept-button {
    background-color: #f97316 !important;
}

.accept-button:hover {
    background-color: #ea580c !important;
    transform: translateY(-1px);
}

.task-content {
    padding-left: 0 !important;
    flex-wrap: wrap;
}

.task-type {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.task-description {
    flex: 1;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.task-list-header {
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 0 !important;
    margin-bottom: 1rem;
}

.task-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-list-actions {
    display: flex;
    gap: 1rem;
}

.task-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 125, 239, 0.1);
}

.export-button,
.status-button,
.accept-button,
.reassign-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 100px;
    height: 36px;
    white-space: nowrap;
    text-align: center;
}

.export-button:hover,
.status-button:hover,
.reassign-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.clear-button {
    background-color: var(--danger-color);
    color: white;
}

.clear-button:hover {
    background-color: #b91c1c;
}

.task-number {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.hours-input-container {
    display: flex;
    align-items: center;
}

.hours-input {
    width: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.hours-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 125, 239, 0.1);
}

.hours-input::-webkit-inner-spin-button,
.hours-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.reassign-button {
    background-color: #6366f1;
}

.reassign-button:hover {
    background-color: #4f46e5;
}

.reassign-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.reassign-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 400px;
}

.reassign-content h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.reassign-content select {
    margin-bottom: 1rem;
}

.reassign-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.reassign-actions button:last-child {
    background-color: #6b7280;
}

.reassign-actions button:last-child:hover {
    background-color: #4b5563;
}

.reassign-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
    height: 36px;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .time-display {
        font-size: 0.9rem;
    }

    main {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .task-submission,
    .task-list {
        padding: 1rem;
    }

    .task-list-top {
        flex-direction: column;
        gap: 0.5rem;
    }

    .task-list-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .task-filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-group {
        width: 100%;
    }

    .task-item {
        padding: 0.75rem;
    }

    .task-number {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .task-content {
        padding-left: 0.5rem;
    }

    .task-type {
        font-size: 0.9rem;
    }

    .task-description {
        font-size: 0.9rem;
    }

    .task-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-display {
        flex-direction: column;
        gap: 0.25rem;
    }

    .export-button,
    .clear-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .status-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

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

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

    button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .task-list-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .accept-button {
        width: 100%;
    }

    .accept-button:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }

    header {
        padding: 0.5rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    .task-submission h2,
    .task-list h2 {
        font-size: 1.1rem;
    }

    .task-content {
        padding-left: 0.25rem;
    }

    .task-type {
        font-size: 0.85rem;
    }

    .task-description {
        font-size: 0.85rem;
    }

    button {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
        height: 32px;
    }

    .task-list-actions {
        gap: 0.25rem;
    }

    .task-actions {
        gap: 0.25rem;
    }

    .accept-button {
        font-size: 0.85rem;
    }

    .accept-button:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 100vw !important;
        width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 0 8px !important;
        box-sizing: border-box;
    }
    header, .task-submission, .task-list {
        border-radius: 0 !important;
    }
    main {
        margin-top: 0 !important;
        gap: 0 !important;
    }
    body {
        background: var(--background-color);
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-out 2s forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.tabs {
    display: flex;
    margin-bottom: 1rem;
    gap: 1rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: #e5e7eb;
    color: #1f2937;
    font-weight: 600;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    transition: background 0.2s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
} 