/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white-color: #ffffff;
    --black-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HONOR Sans World','HONOR Sans Brand','Honor Sans Custom','PingFang SC',Arial;
    line-height: 1.6;
    color: var(--black-color);
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
}

.logo h1 span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Main Content Styles */
main {
    padding: 30px 0;
    min-height: calc(100vh - 150px);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
}

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--black-color);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* IMEI Form */
.imei-form {
    display: flex;
    max-width: 600px;
}

.imei-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.imei-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.imei-form button:hover {
    background-color: #2980b9;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Warranty Check Section */
.warranty-check {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.warranty-check h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Device Info */
.device-info {
    display: flex;
    margin-top: 30px;
    gap: 30px;
}

.device-image {
    flex: 1;
    max-width: 300px;
}

.device-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.no-image {
    background-color: #f5f5f5;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--gray-color);
}

.no-image i {
    font-size: 50px;
    margin-bottom: 10px;
}

.device-details {
    flex: 2;
}

.device-details h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.device-details ul {
    list-style: none;
}

.device-details ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.device-details ul li strong {
    display: inline-block;
    width: 150px;
    color: var(--dark-color);
}

/* Status Badges */
.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.expired {
    background-color: #f8d7da;
    color: #721c24;
}

.status.not_sold {
    background-color: #fff3cd;
    color: #856404;
}

/* Auth Forms */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.auth-form button:hover {
    background-color: #2980b9;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .imei-form {
        flex-direction: column;
    }
    
    .imei-form input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .imei-form button {
        border-radius: 4px;
    }
    
    .device-info {
        flex-direction: column;
    }
    
    .device-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    nav ul {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Add to assets/css/style.css */

.warranty-check {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.imei-form {
    display: flex;
    margin-bottom: 2rem;
}

.imei-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.imei-form button {
    padding: 0 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.device-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.device-image {
    flex: 0 0 200px;
}

.device-image img {
    width: 100%;
    border-radius: 8px;
}

.no-image {
    background: #f5f5f5;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    border-radius: 8px;
}

.no-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.status.active {
    background: #d4edda;
    color: #155724;
}

.status.expired {
    background: #f8d7da;
    color: #721c24;
}

.status.not_sold {
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 768px) {
    .device-info {
        flex-direction: column;
    }
    
    .device-image {
        flex: 1;
        max-width: 100%;
    }
    
    .imei-form {
        flex-direction: column;
    }
    
    .imei-form input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .imei-form button {
        border-radius: 4px;
    }
}