/* 🌿 One-by-One Form Field Layout — Safe for Notice Display */

.smc-add-notice-form-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 32px;
    margin-bottom: 35px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.smc-add-notice-form-container h2 {
    margin-top: 0;
    color: #111827;
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

form#smc-frontend-add-notice-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form#smc-frontend-add-notice-form .form-group {
    display: flex;
    flex-direction: column;
}

form#smc-frontend-add-notice-form .form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

form#smc-frontend-add-notice-form .form-group input[type="text"],
form#smc-frontend-add-notice-form .form-group input[type="date"] {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9fafb;
    transition: border-color 0.2s ease;
}

form#smc-frontend-add-notice-form .form-group input[type="text"]:focus,
form#smc-frontend-add-notice-form .form-group input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

form#smc-frontend-add-notice-form .form-group input[type="file"] {
    padding: 10px 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

form#smc-frontend-add-notice-form .form-group input[type="file"]::file-selector-button {
    padding: 8px 14px;
    background-color: #e0e7ff;
    border: none;
    border-radius: 6px;
    color: #1e3a8a;
    font-weight: 500;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s ease;
}

form#smc-frontend-add-notice-form .form-group input[type="file"]::file-selector-button:hover {
    background-color: #c7d2fe;
}

#smc_frontend_add_notice_submit {
    background-color: #2563eb;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#smc_frontend_add_notice_submit:hover {
    background-color: #1d4ed8;
}

#smc_frontend_form_message {
    margin-top: 18px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

#smc_frontend_form_message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

#smc_frontend_form_message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444; }

/* ✅ Notice Display Section – No Touch */

.smc-notices-container {
    margin-top: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.smc-notice-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px 22px 16px 22px;
    margin-bottom: 18px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, border 0.2s;
    position: relative;
}

.smc-notice-item:hover {
    box-shadow: 0 6px 24px rgba(0, 115, 170, 0.10);
    border: 1.5px solid #0073aa;
}

.smc-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.smc-notice-header .smc-notice-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #0073aa;
    flex-grow: 1;
    letter-spacing: 0.5px;
}

.smc-notice-header .smc-notice-date {
    font-size: 0.98em;
    color: #777;
    margin-right: 18px;
    flex-shrink: 0;
    font-weight: 500;
}

.smc-delete-notice-btn {
    background: linear-gradient(90deg, #dc3232 60%, #c02b2b 100%);
    color: #fff;
    padding: 7px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(220, 50, 50, 0.08);
    flex-shrink: 0;
}

.smc-delete-notice-btn:hover {
    background: linear-gradient(90deg, #c02b2b 60%, #dc3232 100%);
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.13);
}

.smc-notice-content {
    color: #444;
    line-height: 1.7;
    font-size: 1.05em;
    margin-top: 6px;
}

.smc-notice-content p {
    margin-bottom: 10px;
}

.smc-notice-content a {
    color: #0073aa;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s;
}

.smc-notice-content a:hover {
    color: #005177;
    text-decoration: underline;
}
