/* styles.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    opacity: 1;
}

.navbar {
    background: #ff6f61;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    color: white;
}

.logo a {
    text-decoration: none;
    color: white;
}

.logo a:hover {
    text-decoration: none;
    color: white;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.logo p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    color: white;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar ul li {
    margin: 0 10px;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
}

.navbar ul li a:hover {
    background: #e65b50;
}

.external-link {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transform: translateY(-2px);
}

.content {
    margin-top: 20px;
    background-color: white;
    padding: 30px;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #ff6f61;
    text-align: center;
}

form {
    max-width: 600px;
    margin: 20px 0;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background: #ff6f61;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #e65b50;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 5px 0;
        text-align: center;
    }

    .content {
        padding-top: 0px;
    }
}

/* Add these styles to your existing styles.css file */

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="color"] {
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.btn-save {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-save:hover {
    background-color: #e65b50;
}


/* Add these styles to your existing styles.css file */

.settings-form {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
}

.settings-form h3 {
    margin-top: 0;
    color: #ff6f61;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-delete:hover {
    background-color: #c82333;
}


/* Add these styles to your existing styles.css file */

.gallery-page {
    background-color: #f4f4f4;
    color: #333;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.event-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.event-info h1 {
    margin: 0;
    font-size: 24px;
}

.event-info p {
    margin: 10px 0 0;
    font-size: 16px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    min-height: calc(100vh - 100px); /* Adjust for the event info height */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid white;
    border-radius: 5px;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Lightbox styles */
#lightbox {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 2px solid white;
    border-radius: 5px;
}

.flash-unit {
    width: 18vmin;
    height: 9vmin;
    background: linear-gradient(to bottom, #d0d0d0, #a0a0a0);
    position: absolute;
    top: 10vh;
    right: 8vw;
    border-radius: 1.5vmin;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.5), 0 0 5px rgba(0,0,0,0.3);
}

.flash-unit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-color: #f0f0f0;
    border-radius: 1vmin;
}

.film-counter {
    position: absolute;
    top: 8vh;
    right: 28vw;
    background-color: #222;
    color: #f0f0f0;
    padding: 1.5vmin 3vmin;
    border-radius: 1.5vmin;
    font-size: 5vmin;
    font-weight: bold;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

@media (orientation: portrait) {
    .flash-unit {
        top: 8vh;
        right: 50%;
        transform: translateX(50%);
    }

    .film-counter {
        top: 20vh;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Add these styles to your existing styles.css file */

.auth-page {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

.auth-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center; /* Add this line to center all text */
}

.auth-option h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px; /* Add some bottom margin for spacing */
}

.form-group {
    margin-bottom: 20px;
    text-align: left; /* Keep form labels and inputs left-aligned */
}

.btn-primary {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-bottom: 15px; /* Add some bottom margin for spacing */
}

.forgot-password {
    display: inline-block; /* Change to inline-block */
    margin-top: 10px;
    color: #666;
    text-decoration: none;
}

.signup-link {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.logo h1 {
    color: #ffffff;
    margin: 0;
}

.logo p {
    color: #ffffff;
    margin: 5px 0 0;
    text-align: left;
}

.auth-options {
    display: flex;
    gap: 40px;
}

.auth-option {
    flex: 1;
}

.auth-option h2 {
    color: #333;
    margin-top: 0;
}

.signup-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: #ff6f61;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #e65b50;
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-primary {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

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

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #666;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .auth-options {
        flex-direction: column;
    }

    .auth-container {
        padding: 20px;
    }
}

/* Add these styles to your existing styles.css file */

.sign-out-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.sign-out-btn:hover {
    background-color: white;
    color: #ff6f61;
}

/* Update the existing .nav-links styles */
.nav-links li {
    margin-left: 20px;
    display: flex;
    align-items: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links li {
        margin: 5px 0;
    }
    
    .sign-out-btn {
        width: 100%;
        text-align: left;
    }
}


/* Add these styles to your existing styles.css file */

.gallery-page .event-info {
    background-color: #006375; /* #ff6f61 with opacity */
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.gallery-page .event-info h1 {
    margin: 0;
    font-size: 28px;
    color: #e9e87f;
}

.gallery-page .event-info p {
    margin: 10px 0 0;
    font-size: 16px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}


/* Dashboard Grid Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.dashboard-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 16px rgb(241 230 209);
    transition: transform 0.3s ease;
}

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

.dashboard-item i {
    color: #ff6f61;
    /* margin-bottom: 20px; removed */
}

.dashboard-item h3 {
    margin-bottom: 15px;
    color: #333;
}

.dashboard-item p {
    margin-bottom: 20px;
    color: #666;
}

.dashboard-item .btn-primary {
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dashboard-item .btn-primary:hover {
    background-color: #e65b50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles to your existing styles.css file */

.dashboard-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 16px rgb(241 230 209);
    transition: transform 0.3s ease;
}

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

.dashboard-item i {
    color: #ff6f61;
    /* margin-bottom: 20px; removed */
}

.dashboard-item h3 {
    margin-bottom: 15px;
    color: #333;
}

.dashboard-item p {
    margin-bottom: 20px;
    color: #666;
}

.dashboard-item .btn-primary {
    background-color: #ff6f61;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dashboard-item .btn-primary:hover {
    background-color: #e65b50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-item .btn-primary .external-link {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transform: translateY(-2px);
}

/* Settings Grid Styles */
.settings-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0;
}

.settings-item {
    background-color: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.settings-item i {
    color: #ff6f61;
}

.settings-item h3 {
    margin-bottom: 20px;
    color: #333;
}

.settings-form {
    text-align: left;
}

.settings-form .form-group {
    margin-bottom: 15px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.settings-form textarea {
    resize: vertical;
}

.btn-primary {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#copy-url-btn {
    margin-top: 10px;
}

.alert-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-radius: 0;
    text-align: center;
    padding: 15px;
    margin: 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-list {
        padding: 10px;
    }
    
    .settings-item {
        padding: 20px;
    }
}

#qrcode-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#qrcode {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add a media query for smaller screens */
@media (max-width: 768px) {
    #qrcode-container {
        bottom: 10px;
        right: 10px;
    }

    #qrcode img {
        width: 96px;
        height: 96px;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}