/* JST Auto - Modern Stylesheet */

:root {
    --primary-color: #00BCD4;
    --secondary-color: #0097A7;
    --accent-color: #00E5FF;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1a1a1a;
    --darker-color: #0d0d0d;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-color);
    min-height: 100vh;
}

/* Homepage Styles */
.homepage {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 0;
}

.homepage-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header/Navigation */
.site-header {
    background: var(--darker-color);
    padding: 25px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
}

.logo-container img {
    height: 165px;
    width: auto;
}

.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(26, 26, 26, 0.95) 50%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/><path fill="%2300BCD4" opacity="0.05" d="M0 300 Q300 100 600 300 T1200 300 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-section h1 .highlight {
    color: var(--primary-color);
}

.hero-offer-box {
    background: rgba(0, 188, 212, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto 40px;
    backdrop-filter: blur(10px);
}

.hero-section .tagline {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 400;
}

.hero-section .offer-text {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.hero-section .offer-text .percentage {
    color: var(--primary-color);
    font-size: 3rem;
}

.hero-section .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--darker-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.5);
}

.features-section {
    background: var(--darker-color);
    padding: 80px 40px;
}

.features-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.features-section .section-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--dark-color);
    padding: 40px 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    text-align: left;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-left-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--darker-color);
    padding: 80px 40px;
    border-top: 3px solid var(--primary-color);
}

.how-it-works-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card {
    background: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 30px 25px;
    min-width: 220px;
    flex: 1;
    max-width: 280px;
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.3);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--darker-color);
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.step-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-align: center;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

.step-arrow {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
    }
    
    .step-card {
        max-width: 100%;
        width: 100%;
    }
}

/* Form Container */
.form-container {
    background: var(--dark-color);
    border-radius: 10px;
    padding: 50px 40px;
    margin: 60px auto;
    max-width: 900px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.form-header h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    background: var(--darker-color);
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
    background: var(--dark-color);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.file-upload-area {
    border: 2px dashed rgba(0, 188, 212, 0.5);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    background: var(--darker-color);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.file-upload-area input[type="file"] {
    display: none;
}

.file-upload-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.file-info {
    margin-top: 15px;
    padding: 15px;
    background: var(--dark-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    display: none;
    color: white;
}

.file-info.active {
    display: block;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--darker-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.4);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.admin-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: var(--primary-color);
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.card-header h2 {
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: #666;
    margin-top: 5px;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--light-color);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background: var(--light-color);
}

/* Badge Styles */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-info {
    background: var(--info-color);
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 20px;
    }
    
    .logo-container img {
        height: 100px;
    }
    
    .hero-section {
        padding: 50px 20px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-offer-box {
        padding: 25px;
    }
    
    .hero-section .tagline {
        font-size: 1.3rem;
    }
    
    .hero-section .offer-text {
        font-size: 1.8rem;
    }
    
    .hero-section .offer-text .percentage {
        font-size: 2.2rem;
    }
    
    .hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .how-it-works-section {
        padding: 60px 20px;
    }
    
    .how-it-works-section h2 {
        font-size: 2rem;
    }
    
    .step-card {
        padding: 25px 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .features-section {
        padding: 60px 20px;
    }
    
    .features-section h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        gap: 25px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .admin-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* Custom Confirmation Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-body p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.modal-btn-cancel {
    background: #6c757d;
    color: white;
}

.modal-btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.modal-btn-confirm {
    background: var(--primary-color);
    color: white;
}

.modal-btn-confirm:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}