/* General */
* {
    font-family: "Roboto";
}

body {
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.row {
    margin: 0;
}

.container-fluid {
    padding: 0;
}

.btn-primary {
    background-color: #f2a340;
    border: 2px solid #c28008;
}

.btn-primary:hover {
    background-color: #c28008;
    border-color: #c28008;
}

.msg {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    padding: 10px;
}

#info-container .already-joined-msg {
    margin: 15px 0;
    color: #004085;
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    padding: 10px;
    width: 275px;
}
.dropdown-menu {
    position: absolute !important;
    will-change: transform;
    top: 100% !important;
    left: auto !important;
    right: 0 !important; /* Ensures it aligns to the right */
    z-index: 1050; /* Ensures it appears on top */
    min-width: 150px; /* Adjust width if necessary */
}
html[lang="ar"] .dropdown-menu {
    text-align: right !important;
    direction: rtl;
}
.file-upload-container {
    width: 100%;
    text-align: center;
}

.file-drop-area {
    border: 2px dashed #007bff;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.file-drop-area:hover {
    background-color: #e2e6ea;
}

.file-message {
    font-size: 16px;
    color: #6c757d;
}

.file-input {
    display: none;
}
/* navbar */
#navbar img {
    width: 40px;
}

#navbar {
    justify-content: space-between;
    background-color: #fff;
    padding: 5px 0;
}

#navbar a {
    font-size: 14px;
    color: #757575;
}

#navbar a:hover {
    color: #f2a340;
}

/* Search Container */
#search-container {
    background-image: url("../img/banner.png");
    background-size: cover;
    background-position: center;
    height: 400px;
    padding: 50px;
    text-align: center;
}

#search-container h1 {
    color: #141414;
    margin-bottom: 30px;
    font-weight: 900;
}

#search-container form {
    width: 50%;
    margin: 0 auto;
}

/* Events list */
#events-container {
    padding: 50px;
}

#events-container h2 {
    margin-bottom: 10px;
}

#events-container .subtitle {
    color: #757575;
    margin-bottom: 30px;
}

#cards-container {
    display: flex;
}

#events-container .card {
    flex: 1 1 24%;
    max-width: 25%;
    border-radius: 10px;
    padding: 0;
    margin: 0.5%;
}

#events-container img {
    max-height: 150px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card .card-date {
    font-size: 12px;
    color: #ccc;
}

.card .card-title {
    color: #212121;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.card-participants {
    font-size: 14px;
    color: #757575;
}

/* Event create page */
#event-create-container {
    padding: 30px;
}

#event-create-container label {
    font-weight: bold;
}

#event-create-container input,
#event-create-container select,
#event-create-container textarea {
    font-size: 12px;
}

/* Event page */
#image-container,
#info-container {
    margin-top: 30px;
}

#image-container img {
    border-radius: 10px;
}

#info-container h1 {
    font-size: 36px;
    font-weight: 900;
}

#info-container p {
    margin: 0;
    font-size: 14px;
    display: flex;
}

#info-container div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#info-container h3,
#description-container h3 {
    font-size: 20px;
    font-weight: bold;
}

#info-container ion-icon {
    font-size: 20px;
    color: #f2a340;
    margin-right: 5px;
}

#info-container #event-submit {
    margin: 20px 0;
}

#items-list {
    list-style: none;
    padding-left: 0;
}

#items-list li {
    display: flex;
}

#description-container {
    margin-top: 20px;
}

/* Dashboard */
.dashboard-title-container {
    margin-bottom: 30px;
    margin-top: 30px;
}

.dashboard-events-container th {
    width: 20%;
}

.dashboard-events-container form {
    display: inline-block;
}

/* Edit page */
.img-preview {
    width: 100px;
    margin-top: 20px;
}

/* footer */
footer {
    text-align: center;
    background-color: #353e48;
    color: #fff;
    padding: 30px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer p {
    margin-bottom: 0;
}

/* Responsive styles for mobile and tablet devices */
@media screen and (max-width: 768px) {

    body {
        padding-bottom: 50px;
    }

    #navbar img {
        width: 30px;
    }

    #navbar a {
        font-size: 12px;
    }

    #search-container {
        height: 300px;
        padding: 30px;
    }

    #search-container h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #search-container form {
        width: 90%;
    }

    #events-container {
        padding: 20px;
    }

    #events-container h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    #events-container .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    #cards-container {
        flex-direction: column;
    }

    #events-container .card {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    #events-container img {
        max-height: 100px;
    }

    #info-container h1 {
        font-size: 28px;
    }

    #info-container p {
        font-size: 12px;
    }

    #info-container h3,
    #description-container h3 {
        font-size: 18px;
    }

    #info-container ion-icon {
        font-size: 18px;
    }

    footer {
        padding: 20px;
    }

    .img-preview {
        width: 80px;
    }

    /* Any additional elements that need adjustment for mobile */
}

/* Responsive styles for larger screens (desktop) */
@media screen and (min-width: 1024px) {
    #search-container form {
        width: 40%;
    }

    #events-container {
        padding: 60px;
    }

    #events-container h2 {
        font-size: 28px;
    }

    #events-container .subtitle {
        font-size: 16px;
    }

    #events-container img {
        max-height: 200px;
    }

    #info-container h1 {
        font-size: 40px;
    }

    #info-container p {
        font-size: 16px;
    }

    #info-container h3,
    #description-container h3 {
        font-size: 22px;
    }

    #info-container ion-icon {
        font-size: 22px;
    }

    footer {
        padding: 40px;
    }

    .img-preview {
        width: 120px;
    }
}
