/*
 * CAZUBU Custom Stylesheet
 * Version 7.0 - Dashboard & Animation
 */

/* Globale Stile & Layout */
body, html { height: 100%; }
body { background-color: #212529; color: #f8f9fa; }
.site-container { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.side-menu { width: 280px; background-color: #2f3640; color: #f5f6fa; }
.project-name { font-weight: bold; color: white; }
.nav-link-header { font-weight: bold; color: #888; padding: .5rem 1rem; font-size: 0.8rem; text-transform: uppercase; }
.site-logo { width: 80%; height: auto; margin-bottom: 10px; }
.main-content { flex-grow: 1; padding: 30px; }
.header-card { background-color: #343a40 !important; color: #f8f9fa; border-radius: 0.75rem !important; }
.modal-content { background-color: rgba(233, 236, 239, 0.95) !important; }
.main-content h3.text-white, .main-content h4.text-white { text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); }

/* Login/Register Seiten */
.auth-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-form-wrapper { max-width: 450px; width: 100%; padding: 30px; border-radius: 0.75rem; background-color: rgba(248, 249, 250, 0.95); box-shadow: 0 5px 15px rgba(0,0,0,0.2); border: 1px solid rgba(255, 255, 255, 0.2); }

/* Button Farben & Icons */
.btn-cazubu { --bs-btn-color: #fff; --bs-btn-bg: #556B2F; --bs-btn-border-color: #556B2F; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #6B8E23; --bs-btn-hover-border-color: #6B8E23; }
.popover { max-width: 220px; } .popover-body { padding: 0.5rem; }
.info-link, .info-link:hover { text-decoration: none; color: inherit; }
.notes-icon { cursor: help; color: #6c757d; margin-left: 5px; }

/* Das einheitliche, rahmenlose Cazubu Tabellen-Design */
.cazubu-table-frameless { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 0.75rem; overflow: hidden; }
.cazubu-table-frameless thead th { background-color: #2f3640; color: white; border: none; }
.cazubu-table-frameless tbody td { background-color: rgba(233, 236, 239, 0.92) !important; color: #212529; border-top: 1px solid rgba(47, 54, 64, 0.15); }
.cazubu-table-frameless tbody tr:first-child td { border-top: none; }
.cazubu-table-frameless.table-hover tbody tr:hover td { background-color: rgba(220, 223, 226, 0.95) !important; }

/* Styling für die Registerkarten auf der plants.php */
.plant-tabs { margin-bottom: 1.5rem; }
.plant-tabs .nav-link { color: #fff; font-weight: 500; background-color: rgba(47, 54, 64, 0.7); margin-right: 5px; border-radius: .375rem; }
.plant-tabs .nav-link.active { background-color: #556B2F; color: #fff; font-weight: bold; }

/* Styling für die Detailseite */
.plant-image-frame { background-color: #fff; padding: 0.75rem; border-radius: 0.75rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); height: 300px; display: flex; align-items: center; justify-content: center; }
.plant-image-frame img { border-radius: 0.5rem; max-width: 100%; max-height: 100%; }
.cazubu-table-frameless .nav-tabs { border-bottom: none; }
.cazubu-table-frameless .nav-tabs .nav-link { border: 1px solid transparent; color: #a9a9a9; padding: 0.75rem 1rem; }
.cazubu-table-frameless .nav-tabs .nav-link:hover { border-color: transparent; color: #fff; }
.cazubu-table-frameless .nav-tabs .nav-link.active { background-color: rgba(233, 236, 239, 0.92); color: #212529; font-weight: bold; border-color: transparent; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; }
.gallery-item .gallery-image { width: 100%; height: 120px; object-fit: cover; border-radius: 0.5rem; border: 1px solid #dee2e6; }
.gallery-item .gallery-date { font-size: 0.75rem; color: #6c757d; text-align: left; margin-top: 0.25rem; padding-left: 0.25rem; }
.gallery-item .delete-image-btn { position: absolute; bottom: 5px; right: 5px; opacity: 0.6; transition: opacity 0.2s ease-in-out; width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.gallery-item:hover .delete-image-btn { opacity: 1; }

/* NEU: Stile für die Startseite */
.zoom-effect-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; background-color: #212529; }
.zoom-effect-image { position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; background-image: url('../wallpaper.png'); background-size: cover; background-position: center; opacity: 0.3; transform: translate(-50%, -50%) scale(1); animation: zoomEffect 80s infinite alternate ease-in-out; }
@keyframes zoomEffect { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.2); } }
.dashboard-card { background-color: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.3s ease; }
.dashboard-card:hover { background-color: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.dashboard-card .stat-number { font-size: 3rem; font-weight: 700; color: #556B2F; }
