/* =========================
   app.css  (shared styles)
   ========================= */

/* CSS Vars for quick theming */
:root{
  --bg: #0f172a;           /* slate-900 */
  --panel: #111827;        /* gray-900 */
  --muted: #1f2937;        /* gray-800 */
  --text: #e5e7eb;         /* gray-200 */
  --subtle: #9ca3af;       /* gray-400 */
  --accent: #22d3ee;       /* cyan-400 */
  --accent-quiet: #0891b2; /* cyan-700 */
  --danger: #ef4444;       /* red-500 */
  --ok: #22c55e;           /* green-500 */
  --warn: #f59e0b;         /* amber-500 */
  --radius: 16px;
  --gap: 12px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
  --touch: 44px; /* minimum touch target */
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #002B3C;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.toolbar {
    background-color: #174A5D;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid #005695;
}

.toolbar h1#toolbarTitle {
  font-size: inherit;
  margin: 0; /* Optional: remove default h1 margin */
  font-weight: bold; /* Optional: keep bold styling */
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #002B3C;
    margin-right: 0.5rem;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.toolbar-btn {
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .toolbar-btn {
    padding: 0.85rem 1.1rem;
    font-size: 1.35rem;
    }
}

/* Header below toolbar */
.header-container {
    background-color: #002B3C;
    border-bottom: 1px solid #005695;
    position: sticky;
    top: 56px; /* toolbar height */
    z-index: 99;
    padding: 1rem;
    text-align: center;
}

/* Scrollable content container */
#contentContainer {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #002B3C;
    padding: 1rem;
}

/* Gallery layout for items */
.card-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.item-full-width {
    width: 100%;
}

/* Gallery-friendly cards */
.item-card {
    border-left: 4px solid #F2A900;
    background-color: #174A5D;
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    min-width: 175px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.item-card:hover {
    transform: scale(1.02);
    background-color: #1d5b70;
}


.item-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.item-details {
    font-size: 0.9rem;
    color: #AFCBD7;
}

.custom-footer {
    background-color: #174A5D;
    color: #fff;
    border-top: 2px solid #005695;
    text-align: center;
}

/* Needed for spin-animation to rotate the refresh icon */
.spin-icon {
    display: inline-block;
    vertical-align: middle;
}

.spin-animation {
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Filter row */
/* Touch-friendly filter controls */
.filters .form-control,
.filters .form-select {
    min-height: 48px; /* bigger tap target */
    font-size: 1.1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
}

.filters {
    background-color: #002B3C;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 56px;
    z-index: 98;
    border-bottom: 1px solid #005695;
}

@media (max-width: 576px) {
    .filters {
    flex-direction: column;
    align-items: stretch;
    }

    .filters .form-control,
    .filters .form-select {
    width: 100%;
    font-size: 1.2rem;
    }
}

.time {
    font-size: 1.25rem;
    color: #AFCBD7;
}

.appointment {
    border-left: 6px solid #F2A900;
    background-color: #174A5D;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    scroll-margin-top: 80px;
    min-width: 50%;
}

.appointment.current {
    border-left-color: #009CD1;
    background-color: #08617C;
}

.appointment.expired {
  border-left-color: #888 !important; /* or use var(--subtle) for consistency */
}

.subject {
    font-size: 1.5rem;
    font-weight: bold;
}

.status-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #00FF88;
    font-weight: bold;
}

.status-now::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #00FF88;
    display: inline-block;
}

    /* Highlight animation for the current meeting */
@keyframes highlightFade {
    0%   { background-color: #00ff88; }
    50%  { background-color: #08617C; }
    100% { background-color: #08617C; }
}

.appointment.current.highlight {
    animation: highlightFade 2s ease-in-out;
}

.no-appointments {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 3rem;
    color: #ffffffcc;
}

.expired {
  opacity: 0.5;
  filter: grayscale(0.5);
}

.status-past {
  color: #888;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 4px;
}

/* Modal styling - distinct from header/footer */
.modal-content {
  background-color: #1e293b;
  color: #ffffff;
  border: 1px solid #334155;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.modal-header {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-bottom: 2px solid #009CD1;
  padding: 1.25rem;
}

.modal-footer {
  background-color: #0f172a;
  border-top: 1px solid #334155;
  padding: 1rem 1.25rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 600;
}

.form-label {
  color: #e2e8f0 !important;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.modal .form-control {
  background-color: #0f172a;
  color: #ffffff;
  border: 2px solid #334155;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.modal .form-control:focus {
  background-color: #1e293b;
  color: #ffffff;
  border-color: #22d3ee;
  box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.15);
}

.modal .form-control::placeholder {
  color: #64748b;
}

.modal .btn-close {
  filter: invert(1) brightness(1.5);
  opacity: 0.8;
}

.modal .btn-close:hover {
  opacity: 1;
}
/* Text Size Control Classes */
body.text-size-small .subject {
    font-size: 1.1rem;
}

body.text-size-small .time-range,
body.text-size-small .item-details {
    font-size: 0.7rem;
}

body.text-size-small .status-now,
body.text-size-small .status-past {
    font-size: 0.75rem;
}

body.text-size-small .no-appointments {
    font-size: 1.1rem;
}

/* Medium/Default - already set in base styles, no overrides needed */

body.text-size-large .subject {
    font-size: 2.5rem;
}

body.text-size-large .time-range,
body.text-size-large .item-details {
    font-size: 1.4rem;
}

body.text-size-large .status-now,
body.text-size-large .status-past {
    font-size: 1.5rem;
}

body.text-size-large .no-appointments {
    font-size: 2.5rem;
}

body.text-size-xlarge .subject {
    font-size: 3.5rem;
}

body.text-size-xlarge .time-range,
body.text-size-xlarge .item-details {
    font-size: 2rem;
}

body.text-size-xlarge .status-now,
body.text-size-xlarge .status-past {
    font-size: 2.2rem;
}

body.text-size-xlarge .no-appointments {
    font-size: 3.5rem;
}
