/* Bootstrap Cover Template Custom Styling */
/* File: bootstrap-cover.css */

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color:#f7f8fa;
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em #0000001a, inset 0 .125em .5em #00000026
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh
}

.bi {
    vertical-align: -.125em;
    fill: currentColor
}


/* Navbar Styles */
.brand-logo { height: 32px; width: auto; display: block; }  /* fix logo size */
.navbar-brand span { font-size: 1.25rem; }                  /* compact title */
.nav-link { color: var(--bs-gray-300); }
.nav-link:hover, .nav-link.active { color: #fff; }
.cover-container { max-width: 1100px; }  







.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8
}

.bd-mode-toggle {
    z-index: 1500
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important
}



/* Word Learner App Specific Styles */
.app-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.app-container-header {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.app-container-body {
    padding: 1.5rem;
}

.dark-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8f9fa;
}

.dark-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3);
    color: #f8f9fa;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.dark-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}



.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-light {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 600;
}

.btn-light:hover {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #212529 !important;
}






/* Random Sentence Component Styles */

/* Title word */
.sentence-word {
  text-align: center;
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 .5rem;
}

/* Container for all senses */
.senses-list {
  display: grid;
  gap: .8rem;              /* spacing between sense blocks */
}

/* Each sense block */
.sense-block {
  padding: .6rem .75rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  background: rgba(255,255,255,.05);
}

/* Example is the focal line */
.sense-example {
  color: #f8f9fa;
  line-height: 1.6;
  margin-bottom: .4rem;    /* spacing before POS/meaning line */
}

/* POS + meaning line */
.sense-meaning {
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

/* POS badge */
.pos-badge {
  padding: .12rem .5rem;
  border-radius: 999px;
  font: 600 .72rem/1.2 system-ui, sans-serif;
  color: #0b1a29;
  background: #a9def9;
  border: 1px solid rgba(0,0,0,.08);
}

/* Subtle inline highlight of the target word */
.word-highlight {
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.35);
  padding: 0 .15em;
  border-radius: .2rem;
}


.lead {
  list-style-position: inside; /* moves numbers inside the content box */
  padding-left: 0; /* remove default padding */
  font-family: Arial, sans-serif;
  font-size: 1.2em;
  line-height: 1.6;
}

.lead li {
  margin-bottom: 10px;
}

/* Older - Practice Dots Styles  use maybe: font-size: 1.5rem; */
/* 
.practice-dot {
  color: #ccc; 
  transition: color 0.2s;
}
.practice-dot.filled {
  color: #28a745; 
}
*/
/* Practice Dots Styles  use maybe: font-size: 1.5rem; */
.progress-num {
  font-size: 1.5rem;
  color: #ccc;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-right: 0.2rem;
}
.progress-num.filled {
  color: #fff;
  background: #28a745;
  border-color: #28a745;
}



/* Styling for the table in manage_words.html */
.table-modern th {
background:rgba(255, 255, 255, 0.05);
color: #fff;
border-bottom: 2px solid #343a40;
font-weight: 600;
}
.table-modern td {
    background: rgba(255, 255, 255, 0.05);
    color: #e9ecef;
    border-top: none;
}
.table-modern tr {
    transition: background 0.2s;
}
.table-modern tr:hover {
    background: #222 !important;
}
.table-modern {
    border-radius: 12px;
    overflow: hidden;
}


/* Styling for the BuyMeACoffee button for desktop and mobile layout */
/* Desktop Buy Me a Coffee button */
.navbar .nav-link.bmc-link {
    display: flex;
    align-items: center;
    font-size: 1rem;      /* same as other nav-links */
    height: 36px;         /* same as nav-links */
    padding: 0 0.5rem;    /* adjust to match spacing */
    line-height: 36px;    /* vertically center */
    color: var(--bs-gray-300);
}

.navbar .nav-link.bmc-link:hover {
    color: #FFDD00;       /* optional hover color like BMC theme */
    text-decoration: none;
}


/* === Sidebar Visual Refinement === */

/* Make the sidebar itself match app background better */
.sidebar {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8f9fa;
  width: 260px;
  min-height: 100vh;
  /* backdrop-filter: blur(10px); */
  padding: 1rem;
  transition: transform 0.3s ease-in-out;
}

/* List group (word items) */
.sidebar .list-group {
  background: transparent;
  border: none;
  margin-bottom: 1rem;
}

.sidebar .list-group-item {
  background-color: rgba(255, 255, 255, 0.05); /* same tone as app-container */
  color: #f8f9fa; 
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.4rem;
  margin-bottom: 0.4rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar .list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  /* color: #fff; */
}

/* Search input */
.sidebar .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8f9fa;
}

.sidebar .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.sidebar .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* Buttons in sidebar */
.sidebar .btn-outline-primary {
  color: #0dcaf0;
  border-color: #0dcaf0;
  background-color: transparent;
}

.sidebar .btn-outline-primary:hover {
  background-color: #0dcaf0;
  color: #000;
}

.sidebar .btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: none;
}

.sidebar .btn-danger:hover {
  background-color: #bb2d3b;
}


/* Custom tooltip styling */
.tooltip.custom-tooltip .tooltip-inner {
    /* background-color: #0dcaf0; light blue 
    color: #000;*/
    background-color: #ffffff; /* white background */
    color: #000000; /* black text */
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 0.5rem;
    max-width: 250px;
    text-align: center;
}

.tooltip.custom-tooltip .tooltip-arrow::before {
    border-top-color: #0dcaf0; /* arrow matches tooltip bg */
}

/* Next button styling */
#tooltipNextBtn {
    background-color: #0dcaf0;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    padding: 8px 16px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

#tooltipNextBtn:hover {
    background-color: #00bcd4;
    transform: translateY(-2px);
}

/* Overlay for dimming background */
#tooltipOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 1050;
}

/* Target only footer links */
footer a {
    color: #ffffff;           /* make links fully white */
    text-decoration: none;     /* no underline by default */
    transition: all 0.2s ease; 
}

footer a:hover {
    text-decoration: underline; /* show underline on hover */
    color: #ffffff;             /* keep it white on hover */
    cursor: pointer;
}