/*
top.css
教員一覧用CSSファイル
*/
body {
    margin: 20px;
    line-height: 1.6;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: var(--primary);
}

label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

select {
    width: 100%;
    max-width: 500px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1em;
    background: white;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    transition: border 0.2s;
}

select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}


button.open-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 0.95em;
    border: none;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
}

button.open-button:hover {
    background: #157fcc;
    transform: translateY(-2px);
}

a {
    color: var(--primary);
}


.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.card:has(.status-0) {
    border-color: #B0B7BC;
}

.card:has(.status-1) {
    border-color: #2A8E6F;
}

.card:has(.status-2) {
    border-color: #A63A3A;
}

.card:has(.status-3) {
    border-color: #D6974B;
}

.name {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-0 {
    background: #B0B7BC;
}

.status-1 {
    background: #2A8E6F;
}

.status-2 {
    background: #A63A3A;
}

.status-3 {
    background: #D6974B;
}

.tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #edf2f7;
    color: #015CAB;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    border: 1px solid #cfd8dc;
}

@media (prefers-color-scheme: dark) {
    .tag {
        background: #212425;
        color: #5699C0;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75em;
        border: 1px solid #212425;
    }

    .status-0 {
        background: #5C6468;
    }

    .status-1 {
        background: #21AA8C;
    }

    .status-2 {
        background: #930000;
    }

    .status-3 {
        background: #ea8005;
    }

    .card:has(.status-0) {
        border-color: #5C6468;
    }

    .card:has(.status-1) {
        border-color: #21AA8C;
    }

    .card:has(.status-2) {
        border-color: #930000;
    }

    .card:has(.status-3) {
        border-color: #fab005;
    }

    select {
        background: #191B1C;
        color: #fff;
    }

    label input {
        background: #3B3B3B;
    }
}