body, html {
    height: 100%;
}

.container {
    height: 100%;
}

#connections {
    margin-top: 20px;
    max-height: 65vh; /* Adjusted for better spacing */
}

.collection-card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.card-body {
    position: relative;
}

.delete-icon, .connect-icon {
    position: absolute;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
}

.delete-icon {
    right: 40px;
    color: #d33;
}

.connect-icon {
    right: 10px;
    color: #007bff;
}

.connect-icon:hover {
    color: #0056b3;
}

.delete-icon:hover {
    color: #b21f2d;
}

.card-text {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
    margin-right: 15px;
    word-wrap: break-word;
    width: 80%;
}

.connect-icon.fa-play { 
    color: #007bff;
}

.connect-icon.fa-play:hover { 
    color: #0056b3;
}

.invalid-input {
    border: 2px solid red;
}

.text-green {
    color: green;
}

.text-orange {
    color: orange;
}

.help-icon {
    color: #007bff; /* Bootstrap primary color */
    font-size: 24px;
    margin-top: -5px;
    margin-right: 10px;
}

.help-icon:hover {
    color: #0056b3; /* Darker shade for hover effect */
}

.fas.fa-lock {
    margin-right: 5px;
    color: #6c757d; /* Bootstrap's secondary color (gray) */
}

.fas.fa-lock:hover {
    cursor: help;
}

.badge-success {
    background-color: #28a745; /* Bootstrap's success color (green) */
}

.tls-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Make sure it's above other elements */
    border-top-left-radius: .2rem; /* Match the border radius of the card */
    border-bottom-right-radius: .2rem; /* Optional: for aesthetic purposes */
}

.card {
    position: relative; /* Ensure the .tls-label positions relative to this */
}

.tcp-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    border-top-left-radius: .2rem;
}

.keep-alive-label {
    position: absolute;
    top: 0;
    left: 80px; /* Adjust as necessary, reduced from previous value */
    z-index: 10;
    border-top-left-radius: .2rem;
}
#url-error {
    display: none;
    width: 50%;
}

.divider {
    background-color: #ccc;
    width: 8px;
    cursor: ew-resize;
    height: 100%;
    position: absolute;
    top: 0;
    left: -8px; /* Add this line */
}


.collections-pane {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    background-color: #f8f9fa; /* Light grey background */
    border-right: 1px solid #dee2e6; /* Light border to separate from the content */
}

#helpIcon {
    font-size: 28px;
    color: #007bff;
    transition: color 0.3s;
}
#helpIcon:hover {
    color: #0056b3;
}

.websocket-pane {
    padding: 20px;
    height: calc(100% - 40px);
    overflow-y: auto;
    overflow-x: hidden;
}

#ws-url {
    width: 60%;
    height: 40px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

#addWebSocketBtn {
    font-size: 16px;
    padding: 6px 12px;
    height: 36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: none;
    /* Removed vertical adjustment styles, as Flexbox will handle alignment */
}



#addWebSocketBtn:hover {
    background-color: #0056b3;
    border-color: #004a9f; /* Optional: Adjust the border color on hover */
}

#addWebSocketBtn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translateY(2px); /* Optional: Add a subtle press-down effect on active */
}

#addWebSocketBtn:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5); /* Adjusted to match Bootstrap's focus style */
    border-color: #80bdff; /* Optional: Adjust the border color on focus */
    outline: 0; /* Remove the outline for a cleaner look */
}

#url-error {
    font-size: 14px;
    margin-top: 5px;
    display: none;
    width: 60%;
}

#ws-url:focus {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.is-invalid + .invalid-feedback {
    display: block;
}


h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #00050b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

h4 i {
    margin-right: 10px; /* Add some space between the icon and the text */
    color: #0ac1f4; /* Light brown color */
    font-size: 1.5rem; /* Slightly larger icon */
    transition: transform 0.2s ease-in-out; /* Smooth transition for any transformations */
}

h4 i:hover {
    transform: scale(1.1); /* Slightly enlarge the icon on hover */
    color: #8d6e63; /* Slightly darker shade of light brown when hovered */
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

h2 .icon {
    margin-right: 8px; /* Add some space between the icon and the text */
    width: 2.0rem; /* Adjust the icon size as needed */
    height: 2.0rem; /* Adjust the icon size as needed */
}

.container-fluid, .row {
    overflow: hidden; /* Or 'auto' if you want them to have their own scrollbars */
}

.download-logs-btn {
    padding: 0.125rem 0.5rem;  /* Reduced vertical padding to decrease height */
    font-size: 0.875rem;
    line-height: 0.5;
    border: none;              /* Remove the border */
    border-radius: 0.2rem;
    display: inline-block;
    vertical-align: middle;
    max-width: 40px;
    white-space: nowrap;
    margin-left: 180px !important;
}

.clear-logs-btn {
    padding: 0.125rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.2rem;
    max-width: 40px;
    white-space: nowrap;
    margin-left: 226px !important;
    position: absolute !important; 
    top: 0px !important;  /* Adjust this value as needed */
    line-height: 1;        /* Adjust line-height */
}

.auto-scroll-btn {
    padding: 0.125rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.2rem;
    max-width: 40px;
    white-space: nowrap;
    margin-left: 266px !important;
    position: absolute !important; 
    top: 0px !important;  /* Adjust this value as needed */
    line-height: 1;        /* Adjust line-height */
}


.icon-active {
    color: rgb(0, 185, 252);
}


.icon-inactive {
    color: grey;
}


.logs {
    max-height: 300px; /* Adjust this value based on your preferred height */
    overflow-y: auto;
}

.collection-id-label {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 1;
}


#versionIcon {
    position: relative; /* Makes the icon a reference point for absolutely positioned children */
}
#versionIcon.update-available::before {
    content: "1"; /* Display the number 1 */
    position: absolute; /* Position it over the parent icon */
    top: -5px; /* Adjusted to position the number above the icon */
    right: -5px; /* Adjusted to position the number on the right of the icon */
    background-color: red; /* Background color of the notification bubble */
    color: white; /* Color of the number */
    font-size: 14px; /* Size of the number */
    line-height: 14px; /* Adjusted for better vertical alignment */
    width: 14px; /* Ensures a perfect circle */
    height: 14px; /* Ensures a perfect circle */
    text-align: center; /* Centers the number horizontally */
    border-radius: 50%; /* Makes the notification bubble rounded */
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.25); /* Adds a subtle shadow for depth */
}


#versionIcon i {
    font-size: 14px;            
    color: #007bff;             
    border: 3px solid #007bff;  
    border-radius: 50%;         
    padding: 5px;               
    background-color: #f8f9fa;  
    transition: 0.3s;           
}

#versionIcon:hover i {
    background-color: #007bff;
    color: white;
}

#versionIcon.large i {
    font-size: 18px;            
    padding: 3px;               
    border-radius: 50%;         
    border: 3px solid #007bff;  
}
