/* =========================
   General Styles
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #313131;
}

/* =========================
   Login Page Styles
========================= */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 90%;
    transition: all 0.3s ease;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container .logo {
    width: 120px; /* Adjust size as needed */
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container .logo:hover {
    transform: scale(1.05);
}

.login-box h2 {
    text-align: center;
    color: #075285;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.login-type {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.login-type input[type="radio"] {
    display: none;
}

.login-type label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    padding: 10px 0;
    background: #f0f0f0;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-size: 16px;
    color: #333;
}

.login-type label i {
    margin-right: 8px;
}

.login-type input[type="radio"]:checked + label {
    background: #075285;
    color: #fff;
}

.login-type input[type="radio"]:checked + label i {
    color: #fff;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #075285;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #075285;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #075285;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
}

button[type="submit"]:hover {
    background: #023355;
    transform: translateY(-2px);
}

.error-message {
    color: #AF1A13;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    min-height: 18px; /* To maintain space even when there's no error */
}

/* =========================
   Sidebar Styles
========================= */
.sidebar {
    width: 300px;
    background: linear-gradient(180deg, #075285, #023355);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ensure sidebar spans full viewport height */
    position: fixed; /* Keep sidebar fixed on scroll */
    left: 0;
    top: 0;
    overflow-x: auto; /* Enable scrolling if content overflows */
	overflow-y: hidden;
}

.sidebar h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.sidebar .profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar .profile span {
    font-size: 16px;
}

.sidebar .profile i {
    font-size: 18px;
}

.sidebar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 15px 0px 0px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar a i {
    margin-right: 15px;
    font-size: 22px;
}

.sidebar a.active {
    background: #f9f9f9;
    color: #075285;
    font-weight: bold;
    right: -25px;
    padding-right: 25px;
    margin-left: -25px;
}

.sidebar a.active i {
    color: #AF1A13;
}

.sidebar a:hover {
    transform: scale(1.05);
}

.sidebar a.logout {
    margin-top: auto; /* Push logout to the bottom */
    background: transparent;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar a.logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* =========================
   Calendar Card Styles
========================= */

#calendar-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

#calendar-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #075285;
    text-align: center;
}

/* Container for Eventbrite Events */
#eventbrite-events {
    max-height: 85vh; /* Adjust as needed */
    overflow-y: auto;
    padding: 10px;
}

/* Individual Event Styles */
.event {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.event-header {
    background-color: #075285;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.event-header h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.event-header h2 i {
    margin: 0 10px;
    color: gold;
}

#calendar-card .event-header h3 {
	color: #fff;
    font-size: 1em;
    margin-bottom: 0;
}

.event-image {
    background-size: cover;
    background-position: center;
    height: 200px; /* Adjust height as needed */
}

.event-details {
    padding: 15px;
    text-align: center;
}

.event-link {
    display: inline-block;
    padding: 10px 20px;
    background: #075285;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.event-link:hover {
    background: #023355;
}

/* Responsive Styles for Events */
@media (max-width: 768px) {
    #calendar-card {
        padding: 15px;
    }

    .event-header h2 {
        font-size: 1em;
    }

    .event-header h3 {
        font-size: 0.9em;
    }

    .event-image {
        height: 150px;
    }

    .event-link {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    #calendar-card {
        padding: 10px;
    }

    .event-header h2 {
        font-size: 0.9em;
    }

    .event-header h3 {
        font-size: 0.8em;
    }

    .event-image {
        height: 120px;
    }

    .event-link {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* =========================
   Main Content Styles
========================= */
.main-content {
    margin-left: 300px; /* Offset by sidebar width */
    padding: 25px;
    background-color: #f9f9f9;
    min-height: 100vh; /* Ensure main content spans full viewport height */
    transition: margin-left 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    font-weight: bold;
    color: #075285;
}

.header input {
    width: 300px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 18px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stats-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #313131;
}

.stats-card p {
    font-size: 26px;
    color: #075285;
    font-weight: bold;
}

.stats-card span {
    font-size: 18px;
    color: #7A7A7A;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #313131;
}

.card p {
    font-size: 18px;
    color: #7A7A7A;
}

/* =========================
   Responsive Styles
========================= */
/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
        transition: width 0.3s ease;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar a {
        justify-content: center;
    }

    .sidebar a span {
        display: none;
    }

    .main-content {
        margin-left: 60px;
    }

    .header input {
        width: 200px;
    }
}

/* Additional Responsive Enhancements for Login Page */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-type label {
        font-size: 14px;
    }

    .input-group input {
        font-size: 14px;
    }

    button[type="submit"] {
        font-size: 16px;
    }

    .error-message {
        font-size: 12px;
    }

    .logo-container .logo {
        width: 80px;
    }
}
