/* Student Job Weekly specific styles */
:root {
    --bg: #f8fafc;
    --card: #fff;
    --border: #e2e8f0;
    --text: #1e293b;
    --muted: #64748b;
    --primary: #6366f1;
    --primary-soft: #e0e7ff;
    --success: #22c55e;
    --success-soft: #dcfce7;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --r: 16px;
    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Pretendard', system-ui, -apple-system, sans-serif;
    padding-bottom: 80px;
}

.header {
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title {
    font-size: 1.1rem;
    font-weight: 800;
}

.header-user {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
    text-align: right;
}

.subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

.wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}

.job-card {
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: #fff;
}

.job-description {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.14));
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.job-description-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
}

.job-description-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}

.job-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.job-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.check-item.checked {
    background: var(--success-soft);
    color: #15803d;
}

.check-box {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.check-item.checked .check-box {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 14px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    transition: 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font: inherit;
    background: #f9fafb;
    min-height: 100px;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: var(--primary);
    background: #fff;
}

/* Tab Bar */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 calc(10px + var(--safe-bottom)) 0;
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
    text-decoration: none;
    width: 100%;
    cursor: pointer;
}

.tab-item.active {
    color: var(--primary);
    font-weight: 700;
}

.tab-icon {
    font-size: 24px;
}

#noJobView {
    text-align: center;
    padding: 60px 20px;
}

.day-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    margin: 0 -4px 16px -4px;
    scroll-behavior: smooth;
}

.day-chip {
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    min-width: 50px;
}

.day-chip.active {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.day-chip.today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
