/**
 * S-TechSMD Repair Centre - Main Stylesheet
 * Design basierend auf Fuji Repair Portal
 */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004fa3;
    --secondary-color: #ff6b00;
    --dark-bg: #1a2332;
    --dark-bg-secondary: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --info: #4299e1;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    --border-radius: 6px;
    --border-radius-lg: 8px;
    --box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ===== Container & Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
}

.navbar-brand .logo {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 20px;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .brand-name {
    font-size: 20px;
    color: var(--text-dark);
}

.navbar-brand .brand-tagline {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.navbar-menu a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.navbar-menu .btn-status {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-secondary) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '✓';
    width: 20px;
    height: 20px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--primary-color);
    display: inline-block;
}

.hero h1 .highlight-secondary {
    color: var(--secondary-color);
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-icon::before {
    font-size: 20px;
}

/* ===== Section ===== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-bg {
    background-color: var(--light-bg);
}

/* ===== Expertise Cards ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.expertise-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.expertise-card.blue .icon {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info);
}

.expertise-card.orange .icon {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--secondary-color);
}

.expertise-card.green .icon {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.expertise-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.expertise-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.expertise-card .link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.expertise-card .link::after {
    content: '→';
    transition: var(--transition);
}

.expertise-card:hover .link::after {
    transform: translateX(4px);
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 4px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: var(--font-family);
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-help {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 6px;
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

/* ===== Multi-Step Form ===== */
.form-wizard {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    background-color: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 0;
}

.wizard-step {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.wizard-step::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: transparent;
    transition: var(--transition);
}

.wizard-step.active {
    background-color: var(--white);
}

.wizard-step.active::after {
    background-color: var(--primary-color);
}

.wizard-step.completed {
    background-color: rgba(72, 187, 120, 0.05);
}

.wizard-step-number {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.wizard-step.active .wizard-step-number {
    background-color: var(--primary-color);
    color: var(--white);
}

.wizard-step.completed .wizard-step-number {
    background-color: var(--success);
    color: var(--white);
}

.wizard-step.completed .wizard-step-number::before {
    content: '✓';
}

.wizard-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
}

.wizard-step.active .wizard-step-title {
    color: var(--primary-color);
}

.wizard-content {
    padding: 40px;
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* ===== Status Check ===== */
.status-search {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.search-box input {
    flex: 1;
}

.search-box .btn {
    padding: 12px 32px;
}

.search-hint {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.search-hint a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Status Card ===== */
.status-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: 32px;
    margin-top: 40px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.status-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.status-header .subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.status-badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge.in-repair {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info);
}

/* ===== Progress Timeline ===== */
.progress-timeline {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--border-color);
    z-index: 0;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.progress-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background-color: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.progress-step.completed .progress-icon {
    border-color: var(--success);
    background-color: var(--success);
    color: var(--white);
}

.progress-step.active .progress-icon {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.progress-step.pending .progress-icon {
    background-color: var(--light-bg);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.progress-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.progress-step.completed .progress-label,
.progress-step.active .progress-label {
    color: var(--text-dark);
}

/* ===== Repair Log ===== */
.repair-log {
    margin-top: 40px;
}

.repair-log h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.log-entry {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-date {
    min-width: 100px;
    font-size: 12px;
    color: var(--text-light);
}

.log-date .date {
    display: block;
    font-weight: 600;
}

.log-date .time {
    display: block;
    margin-top: 2px;
}

.log-message {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-section .footer-brand .logo {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.footer-section .footer-brand-name {
    font-size: 18px;
    font-weight: 700;
}

.footer-section .footer-brand-name .smd {
    color: var(--primary-color);
}

.footer-section p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* ===== Page Header ===== */
.page-header {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* ===== Wizard Panel Title ===== */
.wizard-panel-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

/* ===== Form Notice ===== */
.form-notice {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 24px;
}

.form-notice p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

/* ===== Form Validation ===== */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-color: rgba(245, 101, 101, 0.05);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

/* ===== Success Message ===== */
.success-container {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: var(--white);
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--success);
}

.success-ticket {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.success-ticket strong {
    font-size: 24px;
    color: var(--primary-color);
}

.success-text {
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar-menu {
        gap: 16px;
        font-size: 14px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wizard-content {
        padding: 24px;
    }

    .wizard-steps {
        flex-direction: column;
    }

    .progress-timeline {
        flex-direction: column;
        gap: 20px;
    }

    .progress-timeline::before {
        left: 30px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
    }

    .progress-step {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
    }

    .progress-icon {
        margin: 0;
        flex-shrink: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .search-box {
        flex-direction: column;
    }
}
