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

:root {
    --primary-color: #64748b;
    --primary-dark: #475569;
    --secondary-color: #94a3b8;
    --accent-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    
    line-height: 1.6;
    color: var(--text-primary);
    background: #f8fafc;
    min-height: 100vh;
}



/* Premium 2025 Navbar */
.nav2025 {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;

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

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1e293b;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.015em;
    transition: 0.2s;
}

.nav-logo i {
    color: #64748b;
    font-size: 1.9rem;
}

.nav-logo:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

/* Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Normal Links */
.nav-item {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    color: #334155;
    transition: 0.25s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(100,116,139,0.08);
    color: #1e40af;
}

/* Buttons */
.nav-btn {
    padding: 0.55rem 1.3rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.primary {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
    box-shadow: 0 4px 12px rgba(71,85,105,0.25);
}

.nav-btn.primary:hover {
    background: linear-gradient(135deg, #475569, #334155);
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.nav-btn.secondary:hover {
    border-color: #64748b;
    background: #e2e8f0;
    color: #334155;
}

/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #334155;
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: rgba(255,255,255,0.9);
        backdrop-filter: blur(18px);

        flex-direction: column;
        padding: 6rem 1.5rem;
        gap: 1rem;

        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.35s ease;
    }

    /* Show mobile menu */
    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: block;
    }
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: var(--primary-dark);
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-3px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-3px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
}

/* Messages */
.messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1.125rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: var(--danger-color);
}

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

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Phone Card */
.phone-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.phone-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.phone-card p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    font-size: 0.9375rem;
}

.phone-card .badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-lost {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.badge-found {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-closed {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}
/* Footer 2025 */
.footer2025 {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.7),
        rgba(241, 245, 249, 0.9)
    );
    backdrop-filter: blur(14px);
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1300px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* Logo */
.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #64748b;
}

.footer-desc {
    margin-top: 0.75rem;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Social icons */
.footer-social {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;

    color: #64748b;
    font-size: 1.1rem;
    transition: 0.25s ease;
    border: 1px solid #e2e8f0;
}

.footer-social a:hover {
    background: #64748b;
    color: white;
    border-color: #64748b;
    transform: translateY(-3px);
}

/* Columns */
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.footer-col a {
    display: block;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: #475569;
    transition: 0.25s ease;
}

.footer-col a:hover {
    color: #1e40af;
    transform: translateX(4px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.7);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #475569;
    font-size: 0.9rem;
}


/* Search */


.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .navbar .container {
        flex-direction: column;
        padding: 1rem 1.5rem;
    }
    
    .navbar .container > div:first-child {
        width: 100%;
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-left: 0;
        display: none;
        padding: 1rem 0;
        border-top: 1px solid rgba(226, 232, 240, 0.8);
    }
    
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    .nav-links a:not(.btn-primary-nav):not(.btn-secondary-nav)::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0.5rem;
        background: rgba(241, 245, 249, 0.8);
        border: none;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(226, 232, 240, 0.9);
    }
    
    .mobile-menu-toggle.active {
        background: var(--primary-color);
    }
    
    .mobile-menu-toggle.active span {
        background: white;
    }
    
    .mobile-menu-toggle span {
        width: 22px;
        height: 2.5px;
        background: var(--primary-color);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .phone-card {
        padding: 1.25rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer .container > div {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .phone-card {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    
    
    .detail-section {
        padding: 1.5rem;
    }
    
    .phone-info-card {
        padding: 1.5rem;
    }
    
    .confirmation-card {
        padding: 2rem 1.5rem;
    }
}

/* Form grid responsive */
@media (max-width: 768px) {
    form .form-group > div[style*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    .image-upload-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Table responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex !important;
    }
    
    .navbar .container {
        flex-direction: row;
    }
    
    .navbar .container > div:first-child {
        flex-direction: row;
    }
}

/* Image Upload Styles */
#imagePreviewContainer {
    margin-top: 1rem;
}

#imagePreviewContainer > div {
    animation: fadeInUp 0.3s ease;
}

#imagePreviewContainer button:hover {
    background: rgba(220, 53, 69, 1) !important;
    transform: scale(1.15);
}

/* Form Animations */
.form-control.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23667eea' d='M12 2a10 10 0 0 1 10 10h-2a8 8 0 0 0-8-8V2z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Modern Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
