﻿

/* ---------------------------------------------------
   Base Typography and Layout
--------------------------------------------------- */
html, body {
    margin: auto;
    padding: 5px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    font-size: 16px;
    font-family: system-ui, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.20)), url('/lib/assets/grimm.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    
}

@media (min-width: 768px) {
     html {
        font-size: 16px;
    }

}

/* Optional layout container for central content width */
.layout-wrapper {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px;
}


/* ---------------------------------------------------
   Sidenav (Sidebar)
--------------------------------------------------- */

.sidenav {
    position: fixed;
    top: 100px;   
    left: 0;
    width: 250px;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px;
    border-radius: 0 30px 30px 0;
    overflow-y: auto;
    z-index: 1050 !important;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}
/* Toggle button */
.sidenav-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1060;
    background: #111;
    color: white;
    font-size: 24px;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: none;
 
}

.sidenav.show {
    transform: translateX(0);
}

.sidenav-overlay.show {
    display: block;
}

/* Desktop behavior */
@media (min-width: 768px) {
    .sidenav {
        transform: translateX(0);
        border-radius: 30px;
    }

    .sidenav-toggle-btn, .sidenav-overlay {
        display: none;
    }
}

/* Sidenav menu items */
.sidenav ul {
    list-style: none;
    padding: 0;
}

.sidenav li {
    margin: 15px 0;
    padding: 10px;
    border-radius: 15px;
}

    .sidenav li:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: #fff;
        backdrop-filter: blur(2px);
        transition: background-color 0.3s ease, color 0.3s ease;
    }


/* ---------------------------------------------------
   Main Content
--------------------------------------------------- */
main {
    margin-left: 250px !important;
    margin-top:100px; 
    padding: 10px;
    transition: margin-left 0.3s ease;

   
}

@media (max-width: 768px) {
    main {
        margin-left: 0 !important;
        overflow-x:auto;
    }
}

/* ---------------------------------------------------
   Accordion / Pedigree
--------------------------------------------------- */
.accordion-body {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    padding: 10px;
    background: transparent;
}

.accordion-item,
.accordion-collapse {
    background: transparent !important;
    overflow: unset !important;
    padding:10px;
}

.pedigree-container {
    overflow-x: auto;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}


/* ---------------------------------------------------
   Offcanvas
--------------------------------------------------- */
.offcanvas {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
    padding: 10px;
    border-radius: 30px;
    background-color: transparent;
}

.offcanvas {
    margin-top: 80px; /* push it down below navbar */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}



.offcanvas-body {
    padding-top: 100px;
    position: relative;
    border-radius: 15px;
    overflow-y: auto;
}

.offcanvas-header {
    border-radius: 15px;
}


@media (max-width: 768px) {
    .offcanvas {
        z-index: 1070 !important;
    }
}


/* ---------------------------------------------------
   Utility Classes
--------------------------------------------------- */
.glass-panel {
  /*  width: 100%;*/
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: ghostwhite;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}


/* ---------------------------------------------------
   Tables
--------------------------------------------------- */

.table-hover tbody tr:hover {
    background-color:black;
    color:white;
    font-size:18px;
}

.table-transparent {
    background-color: transparent !important;
}

    .table-transparent th,
    .table-transparent td {
        background-color: transparent !important;
    }

@media (max-width: 576px) {
    .table td, .table th {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

        .table td .btn {
            font-size: 0.75rem;
            padding: 0.3rem 0.5rem;
        }
}





/* ---------------------------------------------------
   Modals, Forms & Nav
--------------------------------------------------- */
.modal-header,
.modal-footer {
    padding: 0.5rem 1rem !important;
    line-height: 1 !important;
    height: auto !important;
}

    .modal-footer button {
        margin: 0;
        padding: 0.25rem 0.5rem;
        line-height: 1;
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* ---------------------------------------------------
   Misc Layout Adjustments
--------------------------------------------------- */
.fixed-top {
    z-index: 1060;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 10px 14px;
}

    .nav-links li {
        height: 40px;
        display: flex;
        align-items: center;
    }

        .nav-links li a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: color 0.3s;
        }

            .nav-links li a i {
                font-size: 25px;
                margin-right: 10px;
                margin-bottom: 10px;
                vertical-align: top;
            }


/* Suggestions Dropdown */
#suggestions {
    position: absolute;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    cursor: pointer;
}

    #suggestions .list-group-item:hover {
        background-color: black;
        color: white;
    }

.list-group-item.active {
    background-color: #0d6efd;
    color: white;
}


/* Slide Forms */
.form-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

    .form-slide.active {
        opacity: 1;
        transform: translateX(0);
        z-index: 1;
    }

    .form-slide.exit-left {
        transform: translateX(-100%);
        opacity: 0;
        z-index: 0;
    }

#requestFormWrapper {
    flex-grow: 1;
    overflow-y: auto;
}
/*

.container {
    max-width: 1040px;
    margin: 0 auto;

}
*/

.main-content {
    margin-top: 100px; /* Adjust as needed */
}

.navbar {
    height: 80px;
    z-index: 1060;
}

.sub-navbar {
    margin-top: 80px; /* match navbar height */
    z-index: 1040;
}

.navbar-brand img {
    object-fit: cover;
    border-radius: 10px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
/* Change navbar toggler icon color (default uses a background-image) */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

}

/* Apply styles only for collapsed navbar (below md breakpoint) */
@media (max-width: 767.98px) {
    #navbarContent {
        background-color:#ffc107;
        color:black !important;
        padding: 1rem;
        border-radius: 10px 10px 10px 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        
    }

        #navbarContent .nav-link {
            color:black !important;/*  #000 !important;  Ensure links are visible */
        }

            #navbarContent .nav-link:hover {
                background-color: #f1f1f1;                
                border-radius: 5px;            }
}
.dog-card {
    position: relative;
    margin-bottom: 1rem;
}

.dog-checkbox {
    display: none; /* Hide the default checkbox */
}

.dog-card-label {
    display: block;
    border: 2px solid #ccc;
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    user-select: none;
}

.dog-checkbox:checked + .dog-card-label {
    border-color: #198754;
    background-color: #e6f4ea;
    color: #198754;
    box-shadow: 0 0 0 2px #19875455;
}
