/* css/style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #2ecc71;
    --danger-color: #e74c3c;
    --bg-color: #f8f9fa;
    --text-color: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
}

/* Responsive Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Forms (Login, Signup, Upload) */
.form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 40px auto;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
}

/* Responsive Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-info {
    padding: 15px;
}

/* Navigation & Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-danger { background-color: var(--danger-color); }
.btn-success { background-color: var(--accent-color); }

/* Responsive Tables for Admin Dashboard */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Forces scrolling on small screens instead of squishing */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th { background-color: var(--primary-color); color: white; }

/* Media Queries for Mobile Fine-Tuning */
@media (max-width: 600px) {
    body { padding: 10px; }
    .form-card { padding: 20px; }
}
/* --- FULL-SIZE LIGHTBOX MODAL STYLES 6/8/26--- */

/* The Modal background overlay */
.lightbox-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Forces it to sit on top of everything else */
    padding-top: 40px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Dark backdrop */
}

/* Modal Content (The Actual Full-Size Image) */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh; /* Prevents image from spilling past the mobile viewport */
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    
    /* Smooth zoom-in animation effect */
    animation-name: zoomIn;
    animation-duration: 0.25s;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* The Close Button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .lightbox-modal { padding-top: 80px; }
    .lightbox-close { top: 10px; right: 20px; font-size: 35px; }
}