@charset "UTF-8";

/* ==========================
   Front Page
========================== */


.schedule-head {
    display: grid;
    grid-template-columns: 160px 250px 1fr;
    gap: 25px;
    padding: 14px 18px;
    background: #1f2937;
    color: #fff;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

#schedule {
    background: #fff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.schedule-row {
    display: grid;
    grid-template-columns: 160px 250px 1fr;
    gap: 25px;
    align-items: center;
    padding: 22px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.schedule-row:nth-child(even) {
    background: #fafafa;
}

.schedule-row:hover {
    background: #f0f6ff;
}

.schedule-date {
    color: #1976d2;
    font-weight: bold;
    white-space: nowrap;
}

.schedule-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.schedule-body {
    color: #555;
}

.new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 22px;
    padding: 0 8px;
    background: #d50000;
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.loading,
.empty,
.error {
    padding: 30px;
    text-align: center;
    color: #777;
}

/* ==========================
   Admin
========================== */

.admin-page {
    background: #eef2f7;
}

.admin-wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.admin-header {
    margin-bottom: 25px;
}

.admin-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.admin-message {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.admin-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.schedule-form label {
    display: block;
    font-weight: bold;
    margin: 18px 0 6px;
}

.schedule-form input[type="date"],
.schedule-form input[type="text"],
.schedule-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccd3dd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
}

.schedule-form textarea {
    resize: vertical;
}

.admin-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.admin-buttons button {
    padding: 12px 28px;
    border: 0;
    border-radius: 8px;
    background: #1976d2;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.admin-buttons button:hover {
    background: #0d47a1;
}

.cancel-btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #333;
    text-decoration: none;
}

.admin-list {
    border-top: 1px solid #e5e7eb;
}

.admin-list-item {
    display: grid;
    grid-template-columns: 140px 1fr 120px;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.admin-list-date {
    color: #1976d2;
    font-weight: bold;
}

.admin-list-content p {
    margin-top: 5px;
    color: #666;
}

.admin-list-actions {
    text-align: right;
}

.admin-list-actions a {
    display: inline-block;
    margin-left: 8px;
}

/* ==========================
   Responsive
========================== */

@media screen and (max-width: 768px) {


    .schedule-head {
        display: none;
    }

    #schedule {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .schedule-row {
        display: block;
        background: #fff;
        border: 0;
        border-radius: 10px;
        padding: 18px;
        margin-bottom: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,.08);
    }

    .schedule-row:nth-child(even) {
        background: #fff;
    }

    .schedule-date {
        margin-bottom: 8px;
    }

    .schedule-title {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .admin-wrap {
        margin: 20px auto;
    }

    .admin-card {
        padding: 18px;
    }

    .admin-list-item {
        display: block;
    }

    .admin-list-date,
    .admin-list-content {
        margin-bottom: 8px;
    }

    .admin-list-actions {
        text-align: left;
    }

    .admin-list-actions a {
        margin-left: 0;
        margin-right: 12px;
    }
}
.space-30 {
	height:30px;width:100%;
}