:root {
    --primary: #1a237e; /* Navy Blue */
    --primary-light: #534bae;
    --primary-dark: #000051;
    --secondary: #d32f2f; /* Alert Red */
    --background: #f5f6fa;
    --surface: #ffffff;
    --text-main: #1e272e;
    --text-muted: #718093;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    height: 150px;
    width: auto;
    margin-bottom: 20px;
    animation: scaleIn 0.8s ease-out;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

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

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Header */
.app-header {
    background-color: var(--primary);
    color: white;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.app-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.app-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.header-accent {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    margin-top: 10px;
}

/* Main Content */
.app-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 100px; /* Space for bottom nav */
}

section {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UI Components */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.section-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.emblem-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.main-emblem {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
}

select, textarea, input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #dcdde1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

select:focus, textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
}

.input-with-icon input {
    padding-left: 40px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(26, 35, 126, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
    background-color: var(--primary-dark);
}

.btn-emergency {
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

/* Report Cards */
.report-card {
    background: white;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.report-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.report-type {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Media Upload */
.media-upload-container {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.media-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px dashed #dcdde1;
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.media-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(26, 35, 126, 0.02);
}

.media-btn i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.media-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.preview-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #eee;
}

.preview-item.audio-type {
    background-color: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item.audio-type i {
    color: var(--primary);
}

/* Credibility Tags */
.tag-spam {
    background-color: #ffeaa7;
    color: #d35400;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.tag-low {
    background-color: #fab1a0;
    color: #c0392b;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Legal Consent */
.legal-consent {
    margin-top: 20px;
    padding: 10px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 8px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: var(--text-main);
    line-height: 1.4;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface);
    margin: 15% auto;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.danger-icon {
    font-size: 2rem;
}

.modal-body {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.summary-box {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.85rem;
}

.warning-text {
    color: var(--secondary);
}

.modal-footer {
    display: flex;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #dcdde1;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 8px;
    flex: 1;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:disabled {
    background-color: #dcdde1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--surface);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 12px;
    flex: 1;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(26, 35, 126, 0.05);
}

.nav-item.active i {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (min-width: 600px) {
    .app-content {
        max-width: 600px;
        margin: 0 auto;
    }
    .bottom-nav {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 15px 15px 0 0;
    }
}
