body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a, .nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
    display: inline-block; 
}

nav a:hover, .nav-link:hover {
    opacity: 0.8;
}

.logout-form {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: none;
    color: #fff;
}

.nav-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: inherit; 
}
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.movie-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.movie-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.movie-item-content {
    padding: 15px;
}

.movie-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.movie-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.movie-item a {
    text-decoration: none;
    color: inherit;
}

.movie-detail {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
    display: flex;
}

.movie-detail img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.movie-detail-content {
    padding: 30px;
    flex: 1;
}

.movie-detail h1 {
    margin-top: 0;
    color: #333;
}

.movie-detail p {
    color: #666;
}

form {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    display: inline-block;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

button:hover {
    opacity: 0.9;
}
.reservation-form-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

.reservation-form-container h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.movie-info {
    background: #f8f8f8;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.movie-info h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.movie-info p {
    color: #666;
    margin: 0;
}

.reservation-form .form-group {
    margin-bottom: 20px;
}

.reservation-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.reservation-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
}

.reservation-form select:focus {
    outline: none;
    border-color: #6e8efb;
}

.reserve-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.reserve-button:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .reservation-form-container {
        padding: 20px;
    }
}

@media(max-width: 768px) {
    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .movie-detail {
        flex-direction: column;
    }
    
    .movie-detail img {
        width: 100%;
        max-height: 400px;
    }
}

@media(max-width: 480px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 10px 0;
    }
}

.seat-map {
    display: grid;
    grid-template-columns: repeat(8, 1fr); 
    gap: 10px;
    margin-top: 20px;
}

.seat {
    position: relative;
    width: 100%;
    padding-top: 100%; 
}

.seat input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.seat label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.seat input[type="checkbox"]:checked + label {
    background-color: #6e8efb;
    color: white;
}

.seat.unavailable label {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

@media (max-width: 600px) {
    .seat-map {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 400px) {
    .seat-map {
        grid-template-columns: repeat(4, 1fr);
    }
}

.user-reservations-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.reservation-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.reservation-item {
    display: flex;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.reservation-item:hover {
    transform: translateY(-5px);
}

.movie-poster {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.reservation-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reservation-details h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.reservation-details p {
    margin: 5px 0;
    color: #666;
}

@media (max-width: 600px) {
    .reservation-item {
        flex-direction: column;
    }

    .movie-poster {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

.welcome-section {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 50px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-content {
    max-width: 600px;
    margin: 0 auto;
}

.welcome-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.welcome-text p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: #ffffff;
    color: #6e8efb;
}

.button-primary:hover {
    background-color: #f0f0f0;
}

.button-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    .welcome-text h2 {
        font-size: 2em;
    }

    .welcome-text p {
        font-size: 1em;
    }

    .auth-buttons {
        flex-direction: column;
    }
}

/* Auth Styles */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form input:focus {
    border-color: #6e8efb;
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #6e8efb;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #5a7ae6;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.auth-link a {
    color: #6e8efb;
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

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

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

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

