
/* =========================
   LAYOUT & GLOBAL
========================= */

#app {
    flex: 1;
    padding-bottom: 100px;
}

/* Ensure content is not hidden behind the fixed bottom nav */
.main-content {
    padding-bottom: 120px !important;
}


/* Consistent gold colour */
:root {
    --accent-gold: #d7a003;
}

/* =========================
   CARDS
========================= */

.card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.1s ease;
}

.card.section {
    border-top: 3px solid #d7a003;
}

/* =========================
   BUTTONS
========================= */

/* The Small "+ New" button (Right-justified via JS flexbox) */
.btn-new-sm {
    background: var(--accent-gold);
    color: #fff;
    padding: 6px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    transition: background 0.2s;
}

.btn-new-sm:hover {
    background: #2a2100;
    color: #fff;
}

/* Icon-style buttons for list items */
.btn-icon {
    background: #f1f1f1;
    color: #444;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
}


.btn-danger-alt {
    background: #ffebeb;
    color: #dc3545;
}

/* App-specific High-Emphasis button */
.btn-main {
    background: #000 !important;
    color: #F5DB6E !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1.1rem; /* Updated to 1.1rem */
}

/* =========================
   FORMS
========================= */

label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 4px;
}

input, select, textarea,
.form-control, .form-select {

    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    padding: 10px;
}

/* Focus state: Uses your yellow/gold theme */
.form-control:focus, .form-select:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(244, 180, 0, 0.2);
    outline: none;
}

/* =========================
   COMPONENTS
========================= */

/* Sliders */
.slider-row {
    background: rgba(255,255,255,0.5);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 12px;
}

input[type="range"] {
    accent-color: var(--accent-gold);
}

/* Timeline/History */
.timeline-card {
    border-left: 5px solid #f4b400 !important;
    padding-left: 15px;
}

/* Health System Badges */
.health {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.health.green  { background: #d4edda; color: #155724; }
.health.yellow { background: #fff3cd; color: #856404; }
.health.orange { background: #ffe5b4; color: #8a4b00; }
.health.red    { background: #f8d7da; color: #721c24; }
.health.gray   { background: #eee; color: #666; }

/* =========================
   MOBILE BOTTOM NAVIGATION
========================= */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-group {
    display: flex;
    width: 100%;
    justify-content: space-around;
    flex: 1; /* Takes up the top space */
}

.nav-group button {
    background: transparent;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    flex: 1;
    padding: 10px 0;
}

.nav-group button:active {
    color: var(--accent-gold);
    border-bottom: 3px solid #f4b400;
}

/* Style for the copyright underneath */
.copyright-text {
    font-size: 0.75rem;
    color: #6c757d;
    padding-bottom: 8px;
    width: 100%;
    text-align: center;
}

/* =========================
   MOBILE OPTIMISATION
========================= */

@media (max-width: 600px) {
    #app {
        padding: 10px;
    }
}

/* ============================
   Voice Dictation Pulse Effect
============================ */
.recording-pulse {
    border: 2px solid #dc3545 !important;
    animation: pulse-red 1.5s infinite;
    background-color: #fffafa !important;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Make the mic icon look like a button */
.voice-mic-btn {
    font-size: 1.4rem; /* Larger for easier tapping */
    padding: 5px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
}

.voice-mic-btn:hover {
    filter: grayscale(0);
}

.voice-mic-btn:active {
    transform: scale(0.9);
    background: rgba(0,0,0,0.1);
}

/* Photo Styles */
.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.timeline-photo {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.btn-camera {
    background: #6c757d;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 1.1rem;
    display: inline-block;
    width: 100%;
    text-align: center;
}


