/* =========================
   General Body & Fonts
========================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9; /* user dashboard light background */
    color: #333;
    line-height: 1.6;
}

/* =========================
   Sidebar / Dashboard Menu
========================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100%;
    background-color: #2c3e50; /* dark sidebar color for users */
    color: #ecf0f1; /* light font color */
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #1a252f;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #ecf0f1;
}

.sidebar a {
    color: #ecf0f1; /* light link color */
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar a:hover {
    background-color: #27ae60; /* green hover */
    color: #fff;
}

/* =========================
   Main Content
========================= */
.main-content {
    margin-left: 240px; /* width of sidebar + spacing */
    padding: 20px;
}

/* =========================
   Headings
========================= */
h1, h2, h3 {
    color: #2c3e50;
}

/* =========================
   Event Cards Grid & Styling
========================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.event-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.event-card p {
    color: #555;
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Buttons inside Event Cards */
.event-card button,
.event-card a button {
    background-color: #f39c12; /* orange accent for user */
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.event-card button:hover,
.event-card a button:hover {
    background-color: #e67e22;
}

/* =========================
   Forms (login/register/booking)
========================= */
.event-form {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    max-width: 350px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
}

.booking-form {
    max-width: 350px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 30px;
}

.booking-form input {
    margin-top: 10px; 
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form input:focus {
    border-color: #f39c12; /* user accent color */
    outline: none;
    box-shadow: 0 0 5px rgba(243,156,18,0.3);
}

form button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    background-color: #f39c12;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

form button:hover {
    background-color: #e67e22;
}

.form-sec {
    text-align: center;
}

/* =========================
   Hero Section (index page)
========================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    margin: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-btn {
    background-color: #f39c12;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.cta-btn:hover {
    background-color: #e67e22;
}

/* Common Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 10px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: 0.3s ease;
}

/* View Events Button */
.btn-view {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Logout Button */
.btn-logout {
    background: linear-gradient(135deg, #ff4b5c, #d63031);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.btn-logout:active {
    transform: scale(0.95);
}

.button-group {
    text-align: center;
}

/* =========================
    Ticket Card Styling
========================= */
.ticket-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.ticket-card h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.ticket-card p {
    color: #555;
    margin: 8px 0;
    font-size: 0.95rem;
}

/* =========================
   Messages (success/error)
========================= */
p.message {
    text-align: center;
    font-weight: bold;
}

/* =========================
   Responsive Design
========================= */
@media(max-width: 768px){
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }
    .sidebar a {
        flex: 1 1 auto;
        text-align: center;
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}