/* --- ModeLink Global Styles --- */
body { 
    font-family: 'Noto Sans JP', sans-serif; 
    background-color: #f7fafc; 
}
.sidenav { 
    height: 100%; 
    width: 0; 
    position: fixed; 
    z-index: 1001; 
    top: 0; 
    left: 0; 
    background-color: #1a202c; 
    overflow-x: hidden; 
    transition: 0.3s; 
    padding-top: 60px; 
    display: flex; 
    flex-direction: column; 
}
.sidenav a { 
    padding: 11px 15px 11px 24px; 
    text-decoration: none; 
    font-size: 0.9rem; 
    color: #a0aec0; 
    display: flex; 
    align-items: center; 
    transition: 0.2s; 
    white-space: nowrap; 
}
.sidenav a:hover { 
    color: #ffffff; 
    background-color: #2d3748; 
}
.sidenav .mt-auto { 
    margin-top: auto; 
}
.app-header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1002; 
    height: 60px; 
}
.sidenav a .fa-fw { 
    width: 1.25em; 
}

/* --- List Page Specific Styles --- */
.status-badge { 
    padding: 0.3em 0.8em; 
    border-radius: 9999px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    min-width: 90px; 
    text-align: center; 
    background-color: #ffffff; 
    border-width: 1.5px; 
}
.status-draft { border-color: #9ca3af; color: #4b5563; }
.status-active { border-color: #22c55e; color: #166534; }
.status-paused { border-color: #ef4444; color: #b91c1c; }
.status-standby { border-color: #06b6d4; color: #155e75; }
.status-ended { border-color: #9ca3af; color: #4b5563; }

/* ★★★ PROCESSINGステータス専用のスタイルを追加 ★★★ */
.status-processing {
    border-color: #06b6d4; /* standyと同じ色 */
    color: #155e75;
    padding-left: 0.6em;  /* 左右の余白を詰める */
    padding-right: 0.6em;
    letter-spacing: -0.04em; /* 文字間を詰める */
}

/* ★★★ アイコン用のスピナースタイルを追加 ★★★ */
.spinner-sm-white {
    border: 2px solid rgba(0,0,0,0); /* 透明な枠線 */
    border-top: 2px solid #0891b2; /* standyの文字色 */
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: none;
}

/* --- Modal Styles --- */
.modal-overlay { 
    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: 2000; 
}
.modal-content { 
    background-color: white; 
    padding: 2rem; 
    border-radius: 0.5rem; 
    width: 90%; 
    max-width: 500px; 
}

/* --- Label & Form Styles --- */
.color-picker-option { 
    width: 2rem; 
    height: 2rem; 
    border-radius: 9999px; 
    cursor: pointer; 
    border: 2px solid transparent; 
}
.color-picker-option.selected { 
    border-color: #4f46e5; 
    transform: scale(1.1); 
}
#toast-container { 
    position: fixed; 
    top: 1.25rem; 
    right: 1.25rem; 
    z-index: 9999; 
}
.project-checkbox-label { 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    padding: 0.5rem 0; 
}
.project-checkbox { 
    appearance: none; 
    -webkit-appearance: none; 
    position: absolute; 
    opacity: 0; 
    cursor: pointer; 
}
.project-checkbox-custom { 
    position: relative; 
    display: inline-block; 
    width: 1.25rem; 
    height: 1.25rem; 
    border: 2px solid #d1d5db; 
    border-radius: 50%; 
    transition: all 0.2s; 
    margin-right: 0.75rem; 
}
.project-checkbox:checked + .project-checkbox-custom { 
    border-color: rgb(99 102 241); 
}
.project-checkbox:checked + .project-checkbox-custom::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 0.75rem; 
    height: 0.75rem; 
    background-color: rgb(99 102 241); 
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
}
.custom-radio-label {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: #ffffff;
}
.custom-radio-label:hover {
    border-color: #4f46e5;
}
input[type="radio"]:checked + .custom-radio-label {
    background-color: #eef2ff;
    border-color: #4f46e5;
    color: #4338ca;
    font-weight: 500;
}