/*
 * Metal Events Manager - Custom Stylesheet
 * Version: 1.1
 */

/* ====[ Shortcode: Event List ]==== */
.mem-events-list-wrapper {
    background-color: #111;
    color: #fff;
    padding: 15px;
    font-family: sans-serif;
    border-radius: 5px;
}
.mem-event-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    padding: 10px 0;
}
.mem-event-item:last-child {
    border-bottom: none;
}
.mem-event-date {
    background-color: #c00;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    min-width: 50px;
    margin-right: 15px;
    font-size: 1em;
    line-height: 1.2;
}
.mem-event-info {
    flex-grow: 1;
}
.mem-event-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}
.mem-event-info h4 a {
    color: #fff;
    text-decoration: none;
}
.mem-event-info h4 a:hover {
    color: #c00;
}
.mem-event-info p {
    margin: 0;
    color: #aaa;
}
.mem-event-link a {
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 3px;
    white-space: nowrap;
}
.mem-event-link a:hover {
    background-color: #c00;
}

/* ====[ Shortcode: Event Calendar ]==== */
.mem-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 10px;
    color: #fff;
}
.mem-calendar-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.mem-calendar-nav a:hover {
    color: #c00;
}
.mem-calendar {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    color: #fff;
}
.mem-calendar th,
.mem-calendar td {
    border: 1px solid #333;
    width: 14.28%;
    height: 120px;
    vertical-align: top;
    padding: 5px;
}
.mem-calendar th {
    background: #c00;
    text-align: center;
    font-weight: bold;
}
.mem-calendar .day-number {
    font-weight: bold;
    font-size: 1.1em;
}
.mem-calendar .has-events {
    background: #2a2a2a;
}
.mem-calendar .events-on-day a {
    display: block;
    font-size: 0.9em;
    color: #fff;
    text-decoration: none;
    margin-top: 4px;
    background-color: #444;
    padding: 3px;
    border-radius: 2px;
}
.mem-calendar .events-on-day a:hover {
    background-color: #c00;
}

/* ====[ Shortcode: Frontend Submission Form ]==== */
#mem-new-event-form {
    background-color: #1a1a1a;
    border: 1px solid #444;
    padding: 25px;
    color: #e0e0e0;
    border-radius: 5px;
}
#mem-new-event-form p {
    margin-bottom: 15px;
}
#mem-new-event-form label {
    color: #ccc;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}
#mem-new-event-form input[type="text"],
#mem-new-event-form input[type="date"],
#mem-new-event-form input[type="time"],
#mem-new-event-form input[type="url"],
#mem-new-event-form textarea,
#mem-new-event-form select {
    background-color: #333333;
    color: #e0e0e0;
    border: 1px solid #555;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box; /* Important for width */
}

#mem-new-event-form input[type="text"]:focus,
#mem-new-event-form input[type="date"]:focus,
#mem-new-event-form input[type="time"]:focus,
#mem-new-event-form input[type="url"]:focus,
#mem-new-event-form textarea:focus,
#mem-new-event-form select:focus {
    border-color: #d13a3a;
    outline: none;
}

#mem-new-event-form input[type="file"] {
    background-color: #333;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

#mem-new-event-form input[type="submit"] {
    background-color: #d13a3a; /* Metal Red */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    width: 100%;
    font-size: 1.1em;
}

#mem-new-event-form input[type="submit"]:hover {
    background-color: #a82f2f; /* Darker Red on Hover */
}

/* ====[ Single Event Page Details ]==== */
.mem-event-details-wrapper {
    background-color: #1a1a1a;
    border: 1px solid #444;
    padding: 20px;
    margin-top: 20px;
    color: #e0e0e0;
}
.mem-event-details-wrapper h3 {
    color: #ffffff;
    border-bottom: 2px solid #d13a3a;
    padding-bottom: 10px;
}
.mem-event-details-wrapper ul {
    list-style: none;
    padding: 0;
}
.mem-event-details-wrapper ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}
.mem-event-details-wrapper ul li:last-child {
    border-bottom: none;
}
.mem-event-details-wrapper ul li strong {
    color: #ccc;
    min-width: 120px;
    display: inline-block;
}
a.mem-tickets-button {
    display: inline-block;
    margin-top: 20px;
    background-color: #d13a3a;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s;
}
a.mem-tickets-button:hover {
    background-color: #a82f2f;
}

/* ====[ Browser-Specific UI Improvements ]==== */

/* Style for the date/time picker icon in Chrome/Edge */
#mem-new-event-form input[type="date"]::-webkit-calendar-picker-indicator,
#mem-new-event-form input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: #555;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
    filter: invert(1);
}

/* Dark theme for scrollbars in Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2b2b2b;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 3px solid #2b2b2b;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}
