/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: whitesmoke;
}

body {
    background-image: url("data.jpg");
    background-color: #cccccc;
    min-height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between; /* Ensures logo and links are spaced properly */
    align-items: center;
    width: 100%;
    background-color: #2C3E50;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .logo {
    font-size: 1.5em;
    color: #ECF0F1;
    text-decoration: none;
}

.navbar .nav-links {
    list-style-type: none;
    display: flex;
    align-items: center;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: #ECF0F1;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #1ABC9C;
}

/* Hero Section */
.hero-section {
    background-color: rgba(8, 8, 47, 0.7); /* Transparent background (0.7 opacity) */
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px; /* Adjusted for fixed navbar */
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px; /* Reduced bottom margin */
    color: #ffffff;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #ffffff;
}

.hero-section a {
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: #1ABC9C;
    cursor: pointer;
    text-decoration: underline;
}

/* Form Section */
.form-section {
    background-color: #191e3a;
    padding: 40px 20px;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8em;
    color: whitesmoke;
}

.db-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

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

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: whitesmoke;
}

.form-group input, 
.form-group select {
    padding: 12px;
    font-size: 1em;
    border: 1px solid #CCC;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    background-color: transparent;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: #1ABC9C;
}

/* Add transition for showing/hiding fields based on the selected database */
.form-group.hidden {
    display: none;
}

.form-actions {
    grid-column: span 2;
    text-align: center;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #1ABC9C;
    color: white;
}

.btn-outline {
    background-color: white;
    color: #1ABC9C;
    border: 2px solid #1ABC9C;
}

.btn-primary:hover {
    background-color: #16A085;
}

.btn-outline:hover {
    background-color: #1ABC9C;
    color: white;
}

/* Footer */
.footer {
    background-color: #2C3E50;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #1ABC9C;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start; /* Align links on small screens */
    }
    
    .nav-links {
        margin-top: 10px;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .db-form {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    .navbar .nav-links li {
        margin-left: 0;
        margin-top: 10px;
    }

    .form-section {
        padding: 20px;
        width: 90%;
    }

    .btn {
        width: 100%;
        margin-top: 10px;
    }
}
