/* Dark blue theme overrides */

body {
    background-color: #0d1b2a; /* very dark blue */
    color: #e0e0e0;
}

.navbar {
    background-color: #1b263b !important; /* dark navy */
    padding: 1rem;
}

.navbar-brand, .nav-link {
    color: #e0e0e0 !important;
}

.nav-link:hover {
    color: #ffffff !important;
}

.alert {
    opacity: 0.95;
}

footer {
    border-top: 1px solid #2e3b4e;
}

a {
  color: #ffffff;
}

a:hover {
  color: #ffffff;
}



.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 0;
    text-decoration: none;
}

.navbar > .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .d-lg-flex .nav-link {
    margin-right: 1rem;
}


/* Person */

.person-list {
    margin-top: 2rem;
}

.person-letter {
    font-size: 1.5rem;
    margin-top: 2rem;
    border-bottom: 1px solid #2e3b4e;
    padding-bottom: 0.25rem;
    color: #ffffff;
}

.person-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.person-card {
    background-color: #1b263b;
    border: 1px solid #2e3b4e;
    border-radius: 8px;
    padding: 1rem;
    width: 180px;
    height: 240px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.person-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.person-info a {
    color: #e0e0e0;
    font-weight: bold;
    text-decoration: none;
}

.person-info a:hover {
    color: #ffffff;
}


.person-description {
    font-size: 0.85rem;
    color: #a8b0bb;
    margin-top: 0.3rem;
}

/* Quote box styling */
.quote-box {
    background-color: #1b263b; /* Matches navbar */
    color: #e0e0e0;
    border: 1px solid #2e3b4e;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quote-box blockquote {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
}

.quote-footer {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.quote-footer {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.4;
}

.quote-source {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    color: #a8b0bb;
    white-space: normal;
}


.quote-tags {
    margin-top: 0.5rem;
}

.quote-tag {
    display: inline-block;
    background-color: #415a77;
    color: #e0e0e0;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.25rem;
    text-decoration: none;
}

.quote-date {
    font-size: 0.75rem;
    color: #a8b0bb;
    margin-top: 0.5rem;
}

.quote-context {
    color: #a8b0bb;
    font-style: italic;
}

.quote-person-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #2e3b4e;
    flex-shrink: 0;
}

.quote-person-image-big {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #2e3b4e;
    flex-shrink: 0;
}

.quote-source a {
  color: #a8b0bb;
  text-decoration: underline;
  word-break: break-word;
}

.quote-source a:hover {
  color: #ffffff;
}

.quote-link-wrapper {
  text-decoration: none;
  color: inherit;
}

.quote-link-wrapper:hover {
  text-decoration: none;
  color: inherit;
}


.quote-box.instagram-format {
  height: 500px; /* Fixed height */
  width: 500px; /* Fixed width */
  overflow: hidden; /* Enable scrollbars if content overflows */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fit-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: start;
}


.quote-info {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

/* Review table styling (dark theme) */

.table {
    background-color: #1b263b;
    color: #e0e0e0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.table th,
.table td {
    border: 1px solid #2e3b4e;
    padding: 0.75rem;
    vertical-align: middle;
}

.table th {
    background-color: #243447; /* slightly lighter header */
    color: #ffffff;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #1e2a3a;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #1b263b;
}

.table a {
    color: #91c9ff;
    text-decoration: underline;
}

.table a:hover {
    color: #ffffff;
}

/* Optional: Buttons inside tables */
.table .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    background-color: #415a77;
    color: #fff;
    border: none;
}

.table .btn:hover {
    background-color: #5a7290;
}

/* Responsive wrapper padding and margins */
.table-responsive {
    background-color: #0d1b2a;
    padding: 1rem;
    border: 1px solid #2e3b4e;
    border-radius: 8px;
    margin-bottom: 2rem;
}
