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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: white;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

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

.emblem {
    font-size: 2.5rem;
    color: #ffd700;
}

.header-title h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: #ffd700;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.2);
}

.lang-btn.active {
    background: #ffd700;
    color: #1e3c72;
    border-color: #ffd700;
    font-weight: bold;
}

.main-nav {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 0.5rem;
}

.nav-link {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-link.highlight {
    background: #dc3545;
    border-color: #c82333;
}

.nav-link.highlight:hover {
    background: #c82333;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Missing Person Poster Card Style */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.person-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #dc3545;
    position: relative;
}

.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.person-card::before {
    content: 'MISSING';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 2px;
    z-index: 10;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.person-card.unknown-card::before {
    content: 'UNKNOWN';
    background: #007bff;
}

.person-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: #f3f4f6;
    border-bottom: 4px solid #dc3545;
}

.person-info {
    padding: 1.5rem;
    background: #f8f9fa;
}

.person-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #dc3545;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.person-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.detail-item i {
    color: #dc3545;
    width: 24px;
    font-size: 1.1rem;
    margin-top: 2px;
}

.detail-item strong {
    font-weight: 700;
    color: #1f2937;
}

.contact-info {
    background: #1e3c72;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
}

.contact-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.contact-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffd700;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-found {
    background: #dbeafe;
    color: #1e40af;
}

/* Search Filters */
.search-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.view-details-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: #1e3c72;
    color: white;
}

.view-details-btn:hover {
    background: #2a5298;
}

/* Form Container */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.section-title i {
    color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.file-upload {
    border: 3px dashed #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.file-upload input[type=\"file\"] {
    display: none;
}

.file-upload-label {
    display: block;
    color: #6b7280;
}

.file-upload-label i {
    font-size: 2.5rem;
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links {
    opacity: 0.8;
}

.footer-links a {
    color: #93c5fd;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #60a5fa;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 5rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 2rem;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-card p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.action-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Info Section */
.info-section {
    background: #f3f4f6;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.info-section h3 {
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.info-section p {
    color: #6b7280;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.75rem;
    }
    
    .header-top {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        justify-content: center;
        text-align: center;
    }
    
    .header-center {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .header-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .emblem {
        font-size: 1.8rem;
    }
    
    .header-title h1 {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .lang-selector {
        width: 100%;
        justify-content: center;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .main-nav {
        flex-direction: row;
        gap: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .nav-link {
        min-width: auto;
        flex: 1;
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .nav-link i {
        display: block;
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }
    
    .persons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .person-card {
        margin: 0;
        max-width: 100%;
    }
    
    .person-photo {
        height: 200px;
    }
    
    .person-info {
        padding: 1rem;
    }
    
    .person-name {
        font-size: 1.1rem;
    }
    
    .detail-item {
        padding: 0.3rem;
        font-size: 0.85rem;
    }
    
    .detail-item i {
        width: 18px;
        font-size: 0.9rem;
    }
    
    /* Mobile Filter Optimization */
    .search-filters {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    
    .filter-row {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .form-group {
        margin-bottom: 0.5rem !important;
    }
    
    .form-group label {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
        font-weight: 600 !important;
    }
    
    .form-control {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
    
    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .person-card::before {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-header h2 {
        font-size: 1.4rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .header-top {
        margin-bottom: 0.3rem;
        gap: 0.3rem;
    }
    
    .header-title h1 {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    .main-nav {
        gap: 0.2rem;
        padding-top: 0.3rem;
    }
    
    .nav-link {
        min-width: 80px;
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .nav-link i {
        font-size: 0.8rem;
        margin-right: 0.2rem;
    }
    
    .page-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .page-header h2 {
        font-size: 1.3rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .google-translate {
        top: 5px;
        right: 5px;
        padding: 0.15rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .person-photo {
        height: 250px;
    }
    
    .person-name {
        font-size: 1.2rem;
    }
    
    .contact-number {
        font-size: 1.2rem;
    }
    
    .header-title h1 {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
}

/* Aggressive Mobile Optimization */
@media (max-width: 768px) and (orientation: portrait) {
    .search-filters {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .filter-row {
        gap: 0.4rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .form-group {
        margin-bottom: 0.3rem !important;
    }
    
    .form-group label {
        font-size: 0.75rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .form-control {
        padding: 0.4rem !important;
        font-size: 0.8rem !important;
    }
    
    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .persons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .person-card {
        margin: 0;
        max-width: 100%;
    }
    
    .person-photo {
        height: 250px;
    }
    
    .person-info {
        padding: 1.2rem;
    }
    
    .person-name {
        font-size: 1.3rem;
    }
    
    .detail-item {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    .detail-item i {
        width: 20px;
        font-size: 1rem;
    }
    
    /* Extra Small Mobile Filter Optimization */
    .search-filters {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}
