/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #F5F6FA; 
    color: #2D3436; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}


main {
    margin-top: 70px; 
    flex: 1 0 auto;
    padding: 2rem 0;
    min-height: calc(100vh - 70px); 
}


#nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

#nav-links li {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#nav-links li a {
    color: #2D3436; 
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

#nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF6B6B; 
    transition: width 0.3s ease;
}

#nav-links li a:hover::after {
    width: 100%;
}

#nav-links li a:hover {
    color: #FF6B6B; 
}

#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #2D3436; 
    margin: 5px 0;
    transition: all 0.3s ease;
}


.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('uploads/background-image.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 90%;
    width: 600px;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-overlay h1 {
    color: #2D3436; 
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2D3436 0%, #4A69BD 100%); /* Dark Gray to Blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
}

.hero-overlay h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4); /* Red to Turquoise */
    border-radius: 2px;
}

.hero .btn {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); /* Red to Orange */
    color: #FFFFFF; 
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.3);
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%); /* Orange to Red */
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.hero .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.hero .btn:hover::before {
    opacity: 1;
}


.card {
    background: #FFFFFF; 
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.card p {
    color: #636E72; 
    font-size: 1rem;
    line-height: 1.6;
}

.admin-panel {
    padding: 2rem;
    max-width: 1400px;
 
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Table Styles */
.table-container {
    background: #FFFFFF; 
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa; 
    font-weight: 600;
    color: #2D3436; 
}

.admin-table tr:hover {
    background-color: #f8f9fa; 
}

.actions {
    display: flex;
    gap: 0.5rem;
}


.form-container {
    background: #FFFFFF; 
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.admin-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2D3436; 
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd; 
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ECDC4; 
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}


.btn,
.btn-small {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
}

.btn-primary {

    background-color: #4ECDC4;
    color: white;
    display: inline-block;
    
}

.btn-secondary {
    background-color: #95a5a6; 
    color: white;
    
}

.btn-success {
    background-color: #2ecc71; 
    color: white;
}

.btn-danger {
    background-color: #e74c3c; 
    color: white;
}

.btn:hover,
.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda; 
    color: #155724;
    border: 1px solid #c3e6cb; 
}

.message-error {
    background-color: #f8d7da; 
    color: #721c24; 
    border: 1px solid #f5c6cb; 
}


@media (max-width: 768px) {
    header {
        padding: 1rem;
        justify-content: space-between;
    }

    #menu-toggle {
        display: block;
    }

    #nav-links {
        display: none;
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: rgb(172, 194, 207); 
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    #nav-links.show {
        display: flex;
    }

    #nav-links li {
        width: 100%;
        text-align: center;
    }

    .hero-overlay {
        padding: 0.5rem;
        width: 90%;
    }

    .hero-overlay h1 {
        font-size: 2.5rem;
    }

    .hero .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-actions{
        margin-top:20px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-small {
        width: 100%;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-container {
        padding: 1rem;
    }

    .search-container {
        padding: 1rem;
    }

    .search-container input[type="text"] {
        font-size: 1rem;
    }

    .search-container .search-button {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 769px) {
    #menu-toggle {
        display: none;
    }

    .elements {
        display: grid; 
        grid-template-columns: repeat(3, 1fr); 
        gap: 1rem; 
    }

    .hero-overlay {
        width: 600px;
    }

    .hero-overlay:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

    .card {
        background: #FFFFFF;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        overflow: hidden;
        margin: 0; 
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .hero-overlay, form {
    animation: fadeIn 0.6s ease-out;
}


.image-preview {
    max-width: 200px;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed #ddd; 
    border-radius: 6px;
    background-color: #f8f9fa; 
}

.event-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}


footer {
    background-color: #FFFFFF; 
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
    text-align: center;
    color: #95a5a6; 
    flex-shrink: 0;
}

.admin-section {
    margin-bottom: 400px;
}


/* General styles for the search section */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.search-container h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.search-container .form-group {
    margin-bottom: 1.5rem;
}

.search-container label {
    display: block;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
}

.search-container .search-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.search-container .search-button i {
    margin-right: 8px;
}

.search-container .search-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.search-container .search-button:active {
    transform: scale(0.98);
}

