/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap");

/* Define Color Palette and Root Variables */
:root {
    --primary-color: #483aa0;
    --secondary-color: #ff6f61;
    --accent-color: #ffd600;
    --teal-color: #20c997;
    --dark-color: #232946;
    --light-color: #f4f6fb;
    --white-color: #ffffff;
    --gray-color: #e5e7eb;
    --font-family-headings: "Poppins", sans-serif;
    --font-family-body: "Roboto", sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family-body);
    background: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    font-weight: 600;
    color: var(--white-color);
    box-shadow: 0 2px 8px rgba(79, 140, 255, 0.15);
    border-radius: 8px;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
    color: var(--white-color);
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.18);
    transform: translateY(-2px) scale(1.03);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 214, 0, 0.1);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-accent:hover {
    background: #ffe066;
    color: var(--dark-color);
    box-shadow: 0 4px 16px rgba(255, 214, 0, 0.18);
}

.card,
.imei-form-container,
.result-card,
.check-again-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(79, 140, 255, 0.08);
    background: var(--white-color);
    transition: box-shadow 0.3s, transform 0.2s;
}

.card:hover,
.imei-form-container:hover,
.result-card:hover,
.check-again-card:hover {
    box-shadow: 0 12px 32px rgba(31, 200, 219, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px) scale(1.015);
}

.btn,
.btn-primary,
.btn-accent {
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.btn:hover,
.btn-primary:hover,
.btn-accent:hover {
    box-shadow: 0 6px 18px rgba(31, 200, 219, 0.12);
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.05);
}

input,
textarea,
select {
    border-radius: 8px !important;
    border: 1.5px solid var(--gray-color) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.1);
}

input.form-control:focus,
textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(31, 200, 219, 0.12);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.7rem;
    font-weight: 800;
    color: var(--primary-color);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Header / Navbar Styles */
.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.navbar-brand {
    font-family: var(--font-family-headings);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    font-family: var(--font-family-headings);
    font-weight: 500;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--dark-color) !important;
}

.navbar .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 0.5rem;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.navbar .btn-primary,
.navbar .btn-accent {
    margin-left: 0.5rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    font-family: var(--font-family-headings);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white-color);
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Homepage Hero Section */
.hero-section {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 2rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* IMEI Check Form Styles */
.imei-form-container {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: -4rem auto 4rem auto;
    position: relative;
    z-index: 10;
}

.imei-form-container .form-control {
    height: 55px;
    font-size: 1.1rem;
    border-radius: 8px;
}

.imei-form-container .btn {
    height: 55px;
    font-size: 1.1rem;
    padding: 0 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border: none;
    border-radius: 10px;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.col-md-3:nth-child(1) .count {
    background: #1fc8db;
    color: #fff;
}
.col-md-3:nth-child(2) .count {
    background: #ffd600;
    color: #232946;
}
.col-md-3:nth-child(3) .count {
    background: #ff6f61;
    color: #fff;
}
.col-md-3:nth-child(4) .count {
    background: #4f8cff;
    color: #fff;
}

.count .number,
.count h4,
.count span {
    color: inherit !important;
}
.count {
    transition: box-shadow 0.3s cubic-bezier(0.4, 2, 0.6, 1),
        transform 0.2s cubic-bezier(0.4, 2, 0.6, 1), filter 0.2s;
}
.count:hover {
    box-shadow: 0 16px 40px rgba(31, 200, 219, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px) scale(1.05);
    filter: brightness(1.08);
    z-index: 2;
    position: relative;
}

/* Colorful Stat Cards */
.stat-card {
    border-radius: 16px;
    color: #fff;
    padding: 2rem 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 24px rgba(79, 140, 255, 0.08);
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #f4f6fb; /* fallback, will be overridden */
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}
.stat-card.card-total {
    background: #1fc8db;
}
.stat-card.card-month {
    background: #ffd600;
    color: #232946;
}
.stat-card.card-week {
    background: #ff6f61;
}
.stat-card.card-today {
    background: #4f8cff;
}
.stat-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 32px rgba(31, 200, 219, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.04);
}
