html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.desktop {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #a1d1b1, #1c2529) fixed;
    font-size: 20.27px;
    color: #a1d1b1;
    font-family: Lexend, sans-serif;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1600px; /* Increased from 800px */
    margin: 20px auto;
    padding: 20px;
    background-color: #1c2529;
    border-radius: 10.13px;
    color: #a1d1b1;
    overflow-x: auto;
    box-sizing: border-box;
}
.attendance {
    position: relative;
    letter-spacing: 0.51px;
    line-height: 16.21px;
    color: #a1d1b1;
    text-decoration: none;  /* Remove underline */
    cursor: default;        /* Remove pointer cursor */
    font-size: 20.27px;    /* Match font size */
    font-family: Lexend, sans-serif;
}

.attendance:hover {
    color: #a1d1b1;        /* Keep color on hover */
}
.component-child {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10.13px;
    background-color: #a1d1b1;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.create {
    margin: 0;
}
.create-event {
    position: relative;
    letter-spacing: 0.01em;
    line-height: 16.21px;
    z-index: 1;
    text-align: center;
}
.rectangle-parent {
    position: relative;
    width: 101.3px;
    height: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-events {
    position: relative;
    letter-spacing: 0.01em;
    line-height: 16.21px;
    z-index: 1;
    text-align: center;
    padding: 8px 0;  /* Add padding */
    margin: 4px 0;   /* Add margin */
}
.rectangle-group {
    position: relative;
    width: 101.3px;
    height: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login {
    position: relative;
    letter-spacing: 0.01em;
    line-height: 16.21px;
    z-index: 1;
    text-align: center;
}
.rectangle-container {
    position: relative;
    width: 101.3px;
    height: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sign-up {
    position: relative;
    letter-spacing: 0.01em;
    line-height: 16.21px;
    z-index: 1;
    text-align: center;
}
.rectangle-div {
    position: relative;
    width: 101.3px;
    height: 40.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.component-parent {
    width: 100%;
    max-width: 466.1px;
    position: relative;
    height: 40.5px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.attendance-parent {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.header {
    position: absolute;
    width: 100%;
    top: 0px;
    right: 0px;
    left: 0px;
    background-color: #1c2529;
    height: 75px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 17.2px 64.8px;
    box-sizing: border-box;
    z-index: 1001;
}
.footer {
    background-color: #1c2529;
    height: 30px; /* Reduced height */
    width: 100%;
    position: relative;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-rights-reserved {
    position: relative;
    width: 100%;
    height: auto; /* Change from 100% to auto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: normal; /* Change from 30px to normal */
    text-align: center;
    margin: 0; /* Explicitly remove any margin */
    padding: 0; /* Explicitly remove any padding */
}

.all-rights-reserved a {
    color: #a1d1b1;
    text-decoration: none;
    font-size: 12px;
    padding: 0 8px;
    line-height: normal; /* Add this */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.hamburger-menu {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
}
.menu a, .menu-button {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    position: relative;
    width: 101.3px;
    height: 40.5px;
}

.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.menu-button .sign-up {
    position: static;
    color: #1c2529;
}

.hamburger-menu {
    display: block;
    position: relative;
    right: 0;
    margin-left: auto;
    padding-right: 10px;
}

.hamburger-menu .rectangle-div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 101.3px;
    height: 40.5px;
}

.sign-up, .login, .create-event, .my-events {
    position: relative;
    z-index: 1;
}

.menu {
    display: flex;
    gap: 20px;
    position: relative;
}

.menu a {
    position: relative;
    width: 101.3px;
    height: 40.5px;
    text-decoration: none;
    color: inherit;
}

.main-content {
    flex: 1;
    margin-top: 75px;  /* Keep header height */
    padding: 10px;     /* Reduced from 20px */
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #a1d1b1, #1c2529) fixed;
}

.form-container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    padding: 40px;
    background-color: #1c2529;
    border-radius: 10.13px;
    color: #a1d1b1;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.admin-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #1c2529;
    border-radius: 10.13px;
    color: #a1d1b1;
}
.admin-container h2, 
.admin-container h3 {
    color: #a1d1b1;
    margin-bottom: 20px;
    text-align: center;
}
.admin-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.admin-link {
    padding: 12px 24px;
    background-color: #a1d1b1;
    color: #1c2529;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-family: Lexend, sans-serif;
    font-size: 16px;
}
.admin-link:hover {
    background-color: #8bc1a1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #a1d1b1;
    min-width: 800px; /* Set minimum width */
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(161, 209, 177, 0.3);
    background-color: rgba(28, 37, 41, 0.9); /* Darker background */
}

.table th {
    background-color: rgba(161, 209, 177, 0.15); /* Darker header */
    font-weight: normal;
    white-space: nowrap; /* Prevent header text wrapping */
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: #1c2529;
    border-radius: 10.13px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

/* Update scrollbar styles */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(161, 209, 177, 0.1);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(161, 209, 177, 0.3);
    border-radius: 4px;
}
.btn-success {
    background-color: #a1d1b1;
    color: #1c2529;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Lexend, sans-serif;
    transition: background-color 0.3s;
}

.btn-success:hover {
    background-color: #8bc1a1;
}
.footer a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 2px 8px;
    display: inline-block;
    width: auto;
    height: 100%;
    line-height: 12px; /* Reduced from 16.21px */
    transition: color 0.3s;
}

.footer a:hover {
    color: #8bc1a1;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    background: #1c2529;
    border: 1px solid #a1d1b1;
    color: #a1d1b1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #a1d1b1;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #a1d1b1;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #a1d1b1;
    font-size: 16px;
    font-family: Lexend, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #a1d1b1;
    box-shadow: 0 0 0 2px rgba(161, 209, 177, 0.2);
}

.btn-primary {
    background-color: #a1d1b1;
    color: #1c2529;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: Lexend, sans-serif;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #8bc1a1;
}
.developer-info {
    margin-bottom: 30px;
    text-align: center;
}

.developer-info a {
    color: #a1d1b1;
    text-decoration: none;
    transition: color 0.3s;
}

.developer-info a:hover {
    color: #8bc1a1;
}

.admin-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(161, 209, 177, 0.2);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1003;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #1c2529;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #a1d1b1;
    border-radius: 10.13px;
    width: 80%;
    max-width: 500px;
    position: relative;
    color: #a1d1b1;
}

.close {
    color: #a1d1b1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #8bc1a1;
}
/* Add these styles */
.status-approved {
    color: #a1d1b1;
    background-color: rgba(161, 209, 177, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status-pending {
    color: #f0ad4e;
    background-color: rgba(240, 173, 78, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-actions h2 {
    margin: 0;
    color: #a1d1b1;
}

.event-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 20px;
}

.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1rem;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-color: rgba(161, 209, 177, 0.1);
    border: 1px solid #a1d1b1;
    border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: #a1d1b1;
}

.form-control-file {
    display: block;
    width: 100%;
    color: #a1d1b1;
}

input[type="date"]{
    -webkit-appearance: none;
    appearance: none;
    background-color: rgba(28, 37, 41, 0.9);
    border: 1px solid #a1d1b1;
    border-radius: 5px;
    color: #a1d1b1;
    padding: 10px;
    font-family: Lexend, sans-serif;
    width: 100%;
    min-height: 44px;
}

/* Fix calendar and time picker icons color */
input[type="date"]::-webkit-calendar-picker-indicator{
    filter: invert(0.8) sepia(1) saturate(1) hue-rotate(80deg);
    cursor: pointer;
}

input[type="time"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    background-color: rgba(28, 37, 41, 0.9);
    border: 1px solid #a1d1b1;
    border-radius: 5px;
    color: #a1d1b1;
    padding: 8px;
    font-family: Lexend, sans-serif;
    width: 100%;
    min-height: 44px;
    cursor: pointer;
}

/* Improve time picker visibility */
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(1) hue-rotate(80deg);
    cursor: pointer;
}

input[type="time"]::-webkit-datetime-edit {
    color: #a1d1b1;
    font-family: Lexend, sans-serif;
}
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field {
    color: #a1d1b1;
}
input[type="time" i] {
    text-align: center;
}
/* Style timezone dropdown */
select[name="timezone"] {
    max-height: 200px;
    overflow-y: auto;
}

select[name="timezone"] option {
    padding: 8px;
}

input[type="time"]::-webkit-datetime-edit-ampm-field {
    display: none;
}

input[type="time"]::-moz-datetime-edit-ampm-field {
    display: none;
}

input[type="time"]::-ms-datetime-edit-ampm-field {
    display: none;
}

/* Hide AM/PM marker for Safari */
@supports (-webkit-touch-callout: none) {
    input[type="time"] {
        text-align: center;
    }
}
.time-select-container {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background-color: rgba(28, 37, 41, 0.9);
    border: 1px solid #a1d1b1;
    border-radius: 5px;
    padding: 8px;
    color: #a1d1b1;
}

.weekday-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.weekday-checkbox {
    display: none;
}

.weekday-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #a1d1b1;
    border-radius: 5px;
    color: #a1d1b1;
    cursor: pointer;
    transition: all 0.3s;
}

.weekday-checkbox:checked + .weekday-label {
    background-color: #a1d1b1;
    color: #1c2529;
}

.time-select {
    background-color: transparent;
    border: none;
    color: #a1d1b1;
    font-family: Lexend, sans-serif;
    font-size: 16px;
    padding: 4px;
    width: 45%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    text-align: center;
}

.time-select:focus {
    outline: none;
}

.time-select option {
    background-color: #1c2529;
    color: #a1d1b1;
}
.time-separator {
    padding: 0 2px;
    color: #a1d1b1;
}

/* Update date fields visibility */
.date-fields {
    display: block;
    transition: opacity 0.3s;
}

.date-fields.hidden {
    display: none;
}
/* Style select dropdowns */
select.form-control {
    appearance: none;
    background-color: rgba(28, 37, 41, 0.9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1d1b1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

select.form-control option {
    background-color: #1c2529;
    color: #a1d1b1;
    padding: 10px;
}

/* Make form container taller */
.event-form {
    width: 100%;
    max-width: 1000px; /* Increased from 600px */
}

/* Remove container scroll */
.container {
    overflow-x: visible;
}
.date-time-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.date-time-group .form-group {
    flex: 1;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(161, 209, 177, 0.1);
    color: #a1d1b1;
    border: 1px solid #a1d1b1;
}

.alert-danger {
    background-color: rgba(209, 161, 161, 0.1); 
    color: #cd6c6c;
    border: 1px solid #d1a1a1;
}

.alert-info {
    background-color: rgba(161, 177, 209, 0.1);
    color: #a1b1d1;
    border: 1px solid #a1b1d1;
}
.events-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;    /* Changed from 20px auto */
    padding: 20px;
}
.events-container h2 {
    color: #1c2529;
    margin-bottom: 20px;
    font-family: Lexend, sans-serif;
    padding: 0;        /* Removed padding */
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
    gap: 30px;
    padding: 20px;
    width: 100%;
}

.event-card {
    width: 100%;
    background: rgba(28, 37, 41, 0.9);
    border: 1px solid #a1d1b1;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;         /* Full height */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.default-image {
    background: linear-gradient(45deg, #1c2529, #2c373f);
}

.event-details {
    padding: 20px;
}

.event-title {
    color: #a1d1b1;
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.event-description {
    color: #a1d1b1;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
}

.event-metadata {
    margin-bottom: 20px;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #a1d1b1;
}

.event-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-attend, .btn-cancel{
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}
.left-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view {
    background: #1c2529;
    color: #a1d1b1;
    border: 1px solid #a1d1b1;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-attend {
    background: #a1d1b1;
    color: #1c2529;
}

.btn-cancel {
    background: #d1a1a1;
    color: #1c2529;
}

.btn-view {
    background: #1c2529;
    color: #a1d1b1;
    border: 1px solid #a1d1b1;
    text-decoration: none;
}

/* Fix create event page gap */
.desktop {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #a1d1b1, #1c2529) fixed;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-container {
    flex: 1;
    background: rgba(28, 37, 41, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(161, 209, 177, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.event-section {
    margin-bottom: 40px;  /* Increased space between sections */
    padding: 20px;
    background-color: rgba(28, 37, 41, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(161, 209, 177, 0.1);
}

.event-section:last-child {
    margin-bottom: 20px;  /* Less margin for last section */
}

.event-section h3 {
    color: #a1d1b1;
    margin-bottom: 20px;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(161, 209, 177, 0.2);
}

.event-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-view {
    background: #1c2529;
    color: #a1d1b1;
    border: 1px solid #a1d1b1;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover {
    background: rgba(161, 209, 177, 0.1);
}

.btn-cancel {
    background: #d1a1a1;
    color: #1c2529;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background: #c19191;
}

/* Update modal styles */
.mapModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(28, 37, 41, 0.95);
    z-index: 9999;
    padding: 5vh 5vw;
    box-sizing: border-box;
}

.map-modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    margin: 0 auto;
    background-color: #1c2529;
    border-radius: 10px;
    border: 1px solid #a1d1b1;
    overflow: hidden;
    z-index: 10000;
}

.map-container {
    width: 100%;
    height: 100%;
    z-index: 10001;
}

.map-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #1c2529;
    border: 1px solid #a1d1b1;
    color: #a1d1b1;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.3s ease;
}

.location-link {
    cursor: pointer;
    display: inline-block;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.location-link:hover {
    background-color: rgba(161, 209, 177, 0.1);
}

/* Ensure map container is properly positioned */
#locationMap {
    position: relative;
    z-index: 10001;
    background: #1c2529;
}

@media (min-width: 1298px) {
    .header {
        height: 75px;
        padding: 0 64.8px;
    }

    .menu {
        display: flex;
        gap: 20px;
    }

    .hamburger-menu {
        display: none;
    }

    .component-parent {
        justify-content: flex-end;
    }
    .date-time-group {
        gap: 40px; /* Increased from 20px for better spacing in wider container */
    }

    .events-grid {
        grid-template-columns: repeat(3, 1fr); /* 2 columns */
        gap: 20px;
        padding: 15px;
    }
}

/* Tablet Stilleri */
@media (min-width: 721px) and (max-width: 1297px) {
    .header {
        height: 65px;
        padding: 0 40px;
    }

    .menu {
        display: flex;
        gap: 15px;
    }

    .hamburger-menu {
        display: none;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 20px;
        padding: 15px;
    }
    .footer {
        bottom: 10px;
        margin-top: -10px;
    }
}

/* Telefon Stilleri */
@media (max-width: 720px) {
    .header {
        height: 55px;
        padding: 0 20px; /* Increased padding */
        position: relative;
        width: 100%;
        box-sizing: border-box; /* Prevent padding from adding to width */
        overflow: visible; /* Allow menu to be fully visible */
    }

    .menu {
        display: none;
    }
    .form-container.event-form {
        width: 90%; /* Changed from calc */
        max-width: 600px;
        margin: 20px auto; /* Center horizontally */
        padding: 20px;
    }

    .hamburger-menu {
        position: relative;
        display: block;
        margin-left: auto;
    }

    .hamburger-menu .sign-up {
        color: #1c2529; /* Force black color */
    }

    .attendance-parent {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }

    .attendance {
        font-size: 18px;
        line-height: 20px;
    }

    .component-parent {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }

    .rectangle-div {
        position: static;
        width: auto;
        min-width: 80px;
    }

    .hamburger-menu .rectangle-div {
        width: 101.3px;
        height: 40.5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger-menu .sign-up {
        position: static;
        color: #1c2529;
        text-align: center;
        font-size: 20.27px; /* Match other text size */
        font-family: Lexend, sans-serif; /* Match font family */
        letter-spacing: 0.01em; /* Match letter spacing */
        line-height: 16.21px; /* Match line height */
    }
    .mobile-menu {
        display: none;
        position: absolute;
        top: 55px; /* Adjust to align with button bottom */
        right: 0; /* Align with button right edge */
        background-color: #1c2529;
        border-radius: 10.13px;
        padding: 10px;
        z-index: 1002;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: adds depth */
    }

    .mobile-menu.show {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu a {
        width: 101.3px;
        height: 40.5px;
        text-decoration: none;
        color: inherit;
    }
    .container {
        margin: 10px;
        width: calc(100% - 20px);
        padding: 10px;
        overflow: hidden;
    }

    .event-form {
        margin: 10px;
        width: calc(100% - 20px);
    }

    input[type="datetime-local"] {
        font-size: 16px; /* Prevent zoom on mobile */
    }

    .table td {
        white-space: nowrap; /* Prevent text wrapping */
    }

    /* Style scrollbars for better visibility */
    .container::-webkit-scrollbar {
        height: 8px;
    }

    .container::-webkit-scrollbar-track {
        background: rgba(161, 209, 177, 0.1);
        border-radius: 4px;
    }

    .container::-webkit-scrollbar-thumb {
        background-color: rgba(161, 209, 177, 0.3);
        border-radius: 4px;
    }

    .header-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 20% auto;
        width: 90%;
    }

    .form-container.event-form {
        width: calc(100% - 40px);
        margin: 20px;
        max-width: 600px;
    }
    
    .main-content {
        margin-top: 25px;  /* Match mobile header height */
        padding: 5px;      /* Reduced padding */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content */
        overflow-x: hidden;
        width: 100%;
    }
    .footer {
        height: 24px; /* Even smaller on mobile */
        bottom: 10px;
        margin-top: 20px;
    }

    .all-rights-reserved {
        font-size: 10px; /* Smaller font on mobile */
        line-height: normal;
    }
    .events-container {
        padding: 0 15px; /* Minimal side padding for small mobile */
    }
    .events-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px;
    }

    .event-card {
        width: 95%;       /* Take 70% of container width */
        margin: 0 auto;   /* Center horizontally */
    }
    .table-wrapper {
        margin: 0 -10px; /* Negative margin to align with container */
        padding: 0 10px;
        width: calc(100% + 20px);
    }

    .table {
        margin: 0;
        min-width: 600px; /* Minimum width to ensure content fits */
    }

    .table-wrapper::-webkit-scrollbar {
        height: 6px;
    }

    .table-wrapper::-webkit-scrollbar-track {
        background: rgba(161, 209, 177, 0.1);
        border-radius: 3px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background-color: rgba(161, 209, 177, 0.3);
        border-radius: 3px;
    }
}