/* Shared notice/card styles */
.new-notice {
    padding: 10px;
}

.alert-label {
    color: white;
    background: red;
    font-weight: bold;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 50px;
    margin-left: 3px;
}

.sticky-note {
    padding: 10px;
    box-shadow: 5px 5px 1px rgb(58 57 57);
    border: none;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: height 0.3s ease-in-out;
    overflow: hidden;
}

.notice-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.sticky-note .card-footer {
    border-top: none;
    background: transparent;
}

.sticky-note .card-body,
.sticky-note .card-footer {
    position: relative;
    z-index: 99;
}

.sticky-note h5 {
    margin-bottom: 10px;
    font-size: 24px;
    text-align: center;
}

.date-time {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.date-pill {
    background: #228dff;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.time-pill {
    background: #2ecd25;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.sticky-note p {
    font-size: 0.95rem;
    color: #333;
    text-align: center;
}

.notice-content .full-text,
.notice-content .short-text {
    font-size: 0.95rem;
    color: #333;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
}

.notice-content .full-text p,
.notice-content .short-text p {
    text-align: center !important;
}

.notice-content .full-text ul,
.notice-content .full-text ol {
    text-align: left;
    display: block;
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

/* Some global theme resets remove list markers; force them for notice content. */
.notice-content .full-text ul {
    list-style: disc !important;
}

.notice-content .full-text ol {
    list-style: decimal !important;
}

.notice-content .full-text li {
    display: list-item !important;
}

.notice-content .full-text li {
    margin-bottom: 0.35rem;
}

.notice-content .full-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem auto;
}

.notice-content .full-text.ql-editor {
    padding: 0;
}

/* Quill content rendering on board/admin cards */
.notice-content .full-text .ql-size-small {
    font-size: 0.75em;
}

.notice-content .full-text .ql-size-large {
    font-size: 1.3em;
}

.notice-content .full-text .ql-size-huge {
    font-size: 2.5em;
}

.notice-content .full-text .ql-align-center {
    text-align: center;
}

.notice-content .full-text .ql-align-right {
    text-align: right;
}

.notice-content .full-text .ql-align-justify {
    text-align: justify;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 10px;
}

.actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 400;
    transition: background-color 0.3s ease;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
    overflow: hidden;
    z-index: 9;
}

.actions .edit-btn {
    border: 2px solid #b504d3;
    color: #b504d3;
}

.actions .delete-btn {
    border: 2px solid #fc0018;
    color: #d32637;
}

.edit-btn i,
.delete-btn i {
    font-size: 1em;
    padding: 0 10px;
    transition: all 0.5s linear;
}

.edit-btn:hover i,
.delete-btn:hover i {
    transform: translateX(-10px);
}

.edit-btn::before,
.edit-btn::after,
.delete-btn::before,
.delete-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: -101%;
    left: 0;
    z-index: -1;
    transition: all 400ms ease-in;
}

.edit-btn::before,
.edit-btn::after {
    background-color: #b504d3;
}

.delete-btn::before,
.delete-btn::after {
    background-color: #fc0018;
}

.actions button:hover {
    color: #fff;
}

.actions button::before {
    opacity: 0.3;
}

.actions button::after {
    transition-delay: 0.3s;
}

.actions button:hover::before,
.actions button:hover::after {
    top: 0;
}

.notices-inner-wrapp:nth-child(3n + 1) .sticky-note {
    background: #a7fae1;
}

.notices-inner-wrapp:nth-child(3n + 2) .sticky-note {
    background-color: #b8eeff;
}

.notices-inner-wrapp:nth-child(3n + 3) .sticky-note {
    background-color: #fff785;
}

/* Notice board page */
body.notice-board-page {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.14) 0%, transparent 35%),
        radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 45% 88%, rgba(56, 189, 248, 0.1) 0%, transparent 38%),
        linear-gradient(145deg, #f3f8ff, #e7f0ff);
}

.notice-board-page a.log-out {
    position: absolute;
    right: 0;
    top: 30px;
}

.notice-board-page .container-fluid {
    padding: 20px;
}

.notice-board-page .sticky-note.admin {
    min-height: 385px;
    height: auto;
}

.notice-board-page .sticky-note.user {
    min-height: 320px;
    height: auto;
}

.notice-board-page .sticky-note::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -81px;
    width: 48%;
    height: 65px;
    background-image: url(../images/icons/stickey-pin.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9;
}

.notice-board-page .notices-inner-wrapp .sticky-note::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 71px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.notice-board-page .notices-inner-wrapp:nth-child(3n + 1) .sticky-note::after,
.notice-board-page .notices-inner-wrapp:nth-child(3n + 2) .sticky-note::after,
.notice-board-page .notices-inner-wrapp:nth-child(3n + 3) .sticky-note::after {
    background-image: url(../images/icons/stickey-shape1.png);
}

.notice-board-page .sticky-note .card-body {
    margin-top: 19px;
}

.notice-board-page .notice-grid .notices-inner-wrapp {
    display: flex;
}

.notice-board-page .notice-grid .notices-inner-wrapp .sticky-note {
    width: 100%;
    height: 100%;
}

@media (max-width: 1399px) {
    .notice-board-page .notices-inner-wrapp .sticky-note::after {
        top: -17px;
        height: 74px;
    }

    .notice-board-page .sticky-note h5 {
        font-size: 22px;
    }

    .notice-board-page .sticky-note::before {
        top: -23px;
        left: -67px;
        height: 65px;
    }
}

@media (max-width: 1199px) {
    .notice-board-page .notices-inner-wrapp .sticky-note::after {
        top: -22px;
        height: 78px;
    }

    .notice-board-page .sticky-note::before {
        top: -28px;
        left: -53px;
        width: 49%;
        height: 70px;
    }

    .notice-board-page .sticky-note h5 {
        font-size: 18px;
    }

    .notice-board-page .sticky-note.admin {
        min-height: 441px;
    }
}

@media (max-width: 991px) {
    .notice-board-page .notices-inner-wrapp .sticky-note::after {
        height: 70px;
    }

    .notice-board-page .sticky-note::before {
        top: -26px;
        left: -64px;
        width: 49%;
        height: 57px;
    }

    .notice-board-page .sticky-note.admin {
        min-height: 415px;
    }

    .notice-board-page .actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .notice-board-page .sticky-note h5 {
        font-size: 24px;
    }

    .notice-board-page .notices-inner-wrapp .sticky-note::after,
    .notice-board-page .notices-inner-wrapp .sticky-note::before {
        display: none;
    }

    .notice-board-page .sticky-note.admin,
    .notice-board-page .sticky-note.user {
        min-height: 0;
        height: auto;
    }

    .notice-board-page .sticky-note::before {
        top: -7px;
        left: -83px;
    }
}

.notice-board-page .ql-editor strong,
.notice-board-page .ql-editor b,
.notice-board-page strong {
    font-weight: bold !important;
}

/* Admin page */
body.bg-light {
    background: linear-gradient(135deg, #f5f7fb 0%, #eef3ff 100%) !important;
}

.admin-topbar {
    background: #ffffff;
    border: 1px solid #e9eef8;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.08);
}

.admin-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d2a44;
}

.admin-panel-card {
    border: 1px solid #e9eef8;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(26, 54, 93, 0.09);
}

.admin-panel-header {
    background: #f8fbff;
    border: 1px solid #e6eefc;
    border-radius: 12px;
    padding: 12px 14px;
}

.admin-form-wrap {
    background: #ffffff;
    border: 1px solid #e4ebf7;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.section-title {
    font-weight: 700;
    color: #1d2a44;
    margin-bottom: 6px;
}

.form-subtitle {
    color: #5b6b87;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.admin-form-wrap .form-label {
    font-weight: 600;
    color: #253452;
    margin-bottom: 8px;
}

.admin-form-wrap .form-control,
.admin-form-wrap .form-select {
    border-radius: 11px;
    border: 1px solid #d4deef;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 1rem;
    color: #1f2f4f;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-form-wrap .form-control::placeholder {
    color: #8ba0c2;
}

.admin-form-wrap .form-control:focus,
.admin-form-wrap .form-select:focus {
    border-color: #4f86ff;
    box-shadow: 0 0 0 3px rgba(79, 134, 255, 0.16);
}

.editor-shell {
    border: 1px solid #d4deef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.editor-shell .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid #e3eaf7;
    background: #f7faff;
    padding: 10px;
}

.editor-shell .ql-container.ql-snow {
    border: 0;
    min-height: 200px;
}

.editor-shell .ql-editor {
    min-height: 200px;
    color: #1f2f4f;
    font-size: 0.98rem;
}

.admin-form-wrap .btn-primary {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-form-wrap .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
    filter: brightness(1.02);
}

.hub-block {
    background: #fdfefe;
    border: 1px solid #edf1f7;
    border-radius: 12px;
    padding: 12px;
    margin-top: 18px;
}

body.bg-light .sticky-note {
    /*min-height: 320px;*/
    height: 100%;
    /* Default .sticky-note uses overflow:hidden; clip breaks long Quill HTML in admin hub lists */
    overflow: visible;
}

body.bg-light .actions {
    margin-top: 12px;
    margin-bottom: 0;
}

/* Index page */
:root {
    --bg-start: #f3f8ff;
    --bg-end: #e7f0ff;
    --text-main: #0f1f3f;
    --text-soft: #4b5f84;
    --card-bg: rgba(17, 35, 68, 0.78);
    --card-border: rgba(148, 197, 255, 0.22);
    --accent: #22d3ee;
}

body.home-page {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.14) 0%, transparent 35%),
        radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.14) 0%, transparent 42%),
        radial-gradient(circle at 45% 88%, rgba(56, 189, 248, 0.1) 0%, transparent 38%),
        linear-gradient(145deg, var(--bg-start), var(--bg-end));
    display: flex;
    align-items: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.home-page * {
    box-sizing: border-box;
}

.hub-shell {
    max-width: 1140px;
}

.top-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 14px;
}

.page-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f1f3f;
    text-shadow: 0 6px 16px rgba(96, 128, 184, 0.2);
}

.page-subtitle {
    margin: 0 auto;
    max-width: 700px;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hub-card {
    display: block;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(13, 28, 56, 0.86), var(--card-bg));
    box-shadow: 0 10px 24px rgba(3, 10, 24, 0.24);
    backdrop-filter: blur(5px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    text-decoration: none;
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(2, 6, 20, 0.3);
    border-color: rgba(125, 211, 252, 0.55);
}

.hub-card .card-body {
    padding: 42px 34px;
}

.hub-card:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.45);
    outline-offset: 3px;
}

.attendee-card {
    background: linear-gradient(165deg, rgba(7, 45, 74, 0.9), rgba(8, 68, 110, 0.75));
    border-color: rgba(103, 232, 249, 0.34);
}

.speaker-card {
    background: linear-gradient(165deg, rgba(41, 17, 92, 0.9), rgba(74, 31, 145, 0.76));
    border-color: rgba(196, 181, 253, 0.35);
}

.hub-heading {
    color: #f3f7ff;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 14px;
}

.hub-desc {
    color: #bfd4f4;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.hub-cta {
    margin: 0;
    color: #e2efff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.95;
}

.footer-note {
    margin-top: 28px;
    text-align: center;
    font-size: 0.93rem;
    color: #5b7199;
}

.footer-note .dot {
    color: var(--accent);
}
