/* MELTA branding for events.melta.my
   Overrides Indico's default palette:
     #007cac  ->  #2e3192   (dark accent: header, borders, headings)
     #09c     ->  #3f43c4   (light accent: button fills)
   Selectors mirror Indico 3.3.12's compiled CSS; re-check after upgrades. */

/* Page header */
div.page-header {
    background-color: #2e3192;
}

/* Headings and text accents */
.meeting-header h1,
.error-box h1,
.i-box .i-box-header .i-box-title,
.highlight-message-box .icon,
div.announcement-bar:not([hidden]).highlight .close-button {
    color: #2e3192;
}

/* Primary buttons */
.i-button.highlight:not(.label):not(.borderless):not(.text-color),
.action-button:not(.label):not(.borderless):not(.text-color),
.i-label.highlight:not(.label):not(.borderless):not(.text-color):not(.striped),
.i-selection input[type=checkbox]:checked + label:not(.label):not(.borderless):not(.text-color),
.i-selection input[type=radio]:checked + label:not(.label):not(.borderless):not(.text-color) {
    background: #3f43c4;
    border-color: #2e3192;
}

.i-button.highlight:not(.label):not(.borderless):not(.text-color):hover,
.i-button.highlight:not(.label):not(.borderless):not(.text-color):active,
.action-button:not(.label):not(.borderless):not(.text-color):hover,
.action-button:not(.label):not(.borderless):not(.text-color):active {
    border-color: #2e3192;
}

/* Badges and highlight boxes */
.i-badge {
    background-color: #2e3192;
}

.highlight-message-box,
.corner-message.highlight {
    border-color: #2e3192;
}

.list-filter .i-label.title-wrapper:not(.striped) {
    border-color: #2e3192;
    color: #2e3192 !important;
}

.list-filter .i-label.title-wrapper:not(.striped) + .filter {
    border-color: #2e3192;
}

/* Hide "Create event" from anonymous visitors.
   Event creation is already restricted server-side via the root category's
   "Event creation mode"; this only removes the misleading button, which
   anonymous users cannot use anyway.
   body[data-user-id="null"] is Indico's marker for a logged-out session. */

body[data-user-id="null"] #global-menu > menu > li:nth-child(2),
body[data-user-id="null"] #category-toolbar .create-event-button {
    display: none;
}
