/* Styling for the hierarchy container */
.hierarchy .card {
    background-color: #f9f9f9; /* Softer card background */
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    margin-left: 20px; /* Indent each level */
    font-size: 1.2rem;
}

/* Level-specific indentation */
.hierarchy .level-1 {
    margin-left: 0;
}
.hierarchy .level-2 {
    margin-left: 20px;
}
.hierarchy .level-3 {
    margin-left: 40px;
}
.hierarchy .level-4 {
    margin-left: 60px;
}

.hierarchy .card-header,
.hierarchy .card-body {
    padding-left: 40px; /* Align the card header and body */

}

.hierarchy .card-header {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #f0f0f0; /* Softer background for header */
    padding: 15px 40px; /* Ensure consistent padding */
}

.hierarchy .card-body {
    padding: 20px 40px; /* Align body text with header */
    color: #333; /* Darker text for readability */
}

/* Styling the caret and icons */
.hierarchy .caret {
    margin-right: 10px;
}

/* Styling for the Leaflet map container */
.leaflet-container {
    background-color: #f8f9fa; /* Light gray background */
    padding: 1.5rem; /* Adds padding inside the container */
    border-radius: 8px; /* Rounds the container's corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 2rem; /* Space beneath the container */
}

/* Styling for the description text */
.leaflet-description {
    font-size: 1.125rem;
    color: #343c3c;
    margin-bottom: 1rem; /* Space below the description */
    font-weight: 500; /* Slightly bold for emphasis */
}

/* Styling for the #county-uri selectpicker dropdown toggle */
#county-uri + .dropdown-toggle {
    background-color: #ffffff;
    border-color: #ced4da;
    color: #495057;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
}

#county-uri + .dropdown-toggle:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Styling the dropdown menu for #county-uri */
#county-uri ~ .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    max-height: 300px;  /* Ensures the dropdown list doesn't overflow */
    overflow-y: auto;
}

/* Hover effect for dropdown items */
#county-uri ~ .dropdown-menu li a {
    color: #495057;
    padding: 10px;
}

/* Active/Selected item for #county-uri */
#county-uri ~ .dropdown-menu li.active a {
    background-color: #007bff;
    color: #ffffff;
}

/* Hover effect for active/selected item */
#county-uri ~ .dropdown-menu li.active a:hover {
    background-color: #0056b3;
}

/* Styling the search box inside the dropdown */
#county-uri ~ .dropdown-menu .bs-searchbox input {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Button styling */
.leaflet-button {
    background-color: #000;
    color: #fff;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.leaflet-button:hover {
    background-color: #343a40;
    color: #fff;
}

/* Focused state for the select */
.leaflet-select:focus {
    border-color: #0d6efd; /* Blue border on focus */
    outline: none; /* Removes default outline */
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*.card {*/
/*    margin: 20px 0; !* Space between cards *!*/
/*    border: 1px solid #e0e0e0; !* Light gray border *!*/
/*    border-radius: 8px; !* Rounded corners *!*/
/*    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); !* Subtle shadow for depth *!*/
/*    transition: transform 0.3s; !* Animation effect *!*/
/*}*/

.level-1 {
    width: 90%; /* Widest width for the County */
    font-size: 1rem; /* Smallest font size for the County */
}

.level-2 {
    width: 80%; /* Narrower width for the Barony */
    font-size: 1.2rem; /* Slightly larger font size for the Barony */
}

.level-3 {
    width: 70%; /* Narrower width for the Parish */
    font-size: 1.3rem; /* Larger font size for the Parish */
}

.level-4 {
    width: 60%; /* Narrowest width for the Townland */
    font-size: 1.5rem; /* Largest font size for the Townland */
}

/* Arrow styles */
.arrow-down {
    width: 2px; /* Width of the arrow shaft */
    height: 20px; /* Height of the arrow shaft */
    background-color: black; /* Color of the arrow shaft */
    position: relative; /* To position the arrow head */
    margin: -20px 0; /* Pull up the arrow above the card */
}

.arrow-down:after {
    content: '';
    position: absolute;
    left: -5px; /* Center the arrow head */
    top: 20px; /* Positioning arrow head below the shaft */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 10px solid black; /* Arrow head color */
}

.stats {
    font-size: 1rem; /* Font size for the stats */
    margin-top: 10px; /* Space above the stats */
    color: #333; /* Color for the stats */
}

/*.card:hover {*/
/*    transform: scale(1.02); !* Slight scale effect on hover *!*/
/*}*/

/* Button to toggle visibility of hierarchy */

#toggle-hierarchy-btn{
    background-color: #0176D5;  /* Soft Blue */
    color: #ffffff;  /* White Text */
    font-size: 1.5rem;  /* Large font size (24px) */
    font-weight: bold;  /* Bold text for emphasis */
    padding: 1rem 2rem;  /* Extra padding for a large button */
    border-radius: 30px;  /* Rounded corners */
    border: none;  /* No border */
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.4);  /* Subtle shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease;  /* Smooth hover effects */
}

.btn-hierarchy:hover {
    background-color: #3b7dc4;  /* Darker blue on hover */
    box-shadow: 0 12px 24px rgba(59, 125, 196, 0.5);  /* Stronger shadow */
    transform: translateY(-2px) scale(1.05);  /* Lift effect with slight scale */
}

.btn-hierarchy:active {
    transform: translateY(1px) scale(1);  /* Subtle press effect */
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);  /* Reduced shadow */
}
