/*
 * CAZUBU Custom Stylesheet
 * Version 8.1 - Finaler Design-Stand (Rollback)
 */

/* Globale Stile & Layout */
body, html { height: 100%; }
body { background-image: url('../wallpaper.png'); background-size: cover; background-position: center; background-attachment: fixed; }
.site-container { display: flex; min-height: 100vh; }
.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%; max-width: 180px; 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;
}
.cazubu-table-frameless .text-muted {
    color: #6c757d !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 den Bild-Rahmen auf der 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%;
    object-fit: contain;
}

/* Styling für die Registerkarten, wenn sie im Tabellenkopf sind (plant_detail.php) */
.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;
}

/* Styling für die Bildergalerie */
.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;
}
