:root {
    --brand-yellow: #facc15;
    --brand-brown: #78350f;
    --brand-green: #22c55e;
    --brand-bg: #fefce8;
    --text-dark: #451a03;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 15px -3px rgba(120, 53, 15, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--brand-bg);
    color: var(--text-dark);
    min-height: 100vh;
}

.full-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Authentication Styles */
.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 32px;
    box-shadow: 0 20px 25px -5px rgba(120, 53, 15, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.ant-mascot {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: wiggle 2s infinite ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.auth-card h1 {
    color: var(--brand-brown);
    margin-bottom: 0.5rem;
}

.auth-card p {
    color: #92400e;
    margin-bottom: 2rem;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #fde68a;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--brand-yellow);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.primary-btn {
    flex: 2;
    background: var(--brand-yellow);
    color: var(--brand-brown);
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #ca8a04;
    transition: transform 0.1s, box-shadow 0.1s;
}

.primary-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #ca8a04;
}

.secondary-btn {
    flex: 1;
    background: #fef3c7;
    color: #92400e;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* App Styles */
.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1.5rem 1rem 10rem 1rem;
}

header {
    margin-bottom: 2rem;
}

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

.logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
}

header h1 {
    font-size: 1.25rem;
    color: var(--brand-brown);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.logout-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.summary-card {
    background: var(--brand-yellow);
    color: var(--brand-brown);
    padding: 2rem;
    border-radius: 28px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.summary-card::after {
    content: "🐜 🐜 🐜";
    position: absolute;
    bottom: -5px;
    right: 10px;
    opacity: 0.1;
    font-size: 2rem;
}

.summary-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.summary-item strong {
    font-size: 2.8rem;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--brand-brown);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.input-field label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
    padding-left: 0.5rem;
}

.input-field input {
    margin-bottom: 0;
    padding: 0.75rem;
    background: rgba(255,255,255,0.5);
}

.action-btn {
    background: var(--brand-brown);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #451a03;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.text-btn {
    background: none;
    border: none;
    color: #b91c1c;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.7rem;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    color: #92400e;
}

td {
    padding: 1rem 0;
    border-top: 1px solid rgba(120, 53, 15, 0.1);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Voice UI */
.action-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    pointer-events: auto;
}

.manual-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--brand-yellow);
    box-shadow: 0 4px 10px rgba(120, 53, 15, 0.1);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-ui {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    pointer-events: none;
    z-index: 100;
}

.transcript-preview {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(120, 53, 15, 0.15);
    border: 2px solid var(--brand-yellow);
    max-width: 80%;
    text-align: center;
}

.record-btn {
    pointer-events: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-yellow);
    border: none;
    box-shadow: 0 8px 0 #ca8a04, 0 15px 25px rgba(202, 138, 4, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.record-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #ca8a04;
}

.mic-icon {
    font-size: 1.8rem;
}

.record-btn.recording {
    background: #ef4444;
    box-shadow: 0 8px 0 #b91c1c;
    animation: bounce 0.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Report Styles */
.report-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed rgba(120, 53, 15, 0.1);
}

.report-group {
    margin-bottom: 1.5rem;
}

.report-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.main-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #92400e;
}

.cloudfare-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #ea580c;
    text-decoration: none;
    font-weight: 700;
}
