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

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --dark-bg: #1a1a2e;
    --light-bg: #16213e;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 50px rgba(255, 107, 53, 0.4);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 78, 137, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 0;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo svg {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 300;
}

/* Card Styles */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.card-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Form Styles */
.search-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.input-group input::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

.input-icon {
    position: absolute;
    right: 18px;
    bottom: 18px;
    color: var(--text-gray);
    pointer-events: none;
}

.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.btn-search {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    border: none;
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-search:active {
    transform: translateY(0);
}

/* Result Section */
.result-section {
    animation: fadeIn 0.5s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.result-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.serviste {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.status-badge.tamamlandi {
    background: linear-gradient(135deg, #48bb78, #38a169);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.status-badge.bekliyor {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

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

.result-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.result-item.full-width {
    grid-column: 1 / -1;
}

.result-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 400;
}

.result-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}

.btn-reset {
    width: 100%;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

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

    .result-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 25px 0;
    }

    .logo h1 {
        font-size: 1.7rem;
    }

    .card {
        padding: 20px;
    }

    .card-header h2 {
        font-size: 1.3rem;
    }

    .input-group input {
        font-size: 1rem;
    }

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

/* Müşteri numarası alanı animasyonu */
#musteriNoGroup {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification System */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: slideInRight 0.4s ease-out;
    transition: all 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.info {
    border-left-color: var(--primary-color);
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

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

.notification.error .notification-icon {
    background: var(--danger-color);
    color: white;
}

.notification.warning .notification-icon {
    background: var(--warning-color);
    color: white;
}

.notification.info .notification-icon {
    background: var(--primary-color);
    color: white;
}

.notification-message {
    flex: 1;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Mobile Notifications */
@media (max-width: 768px) {
    #notificationContainer {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        width: 100%;
    }
}

/* Geçmiş Kayıtlar */
.history-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.history-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.history-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.history-date {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.history-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.history-status.status-serviste {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.history-status.status-tamamlandi {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.history-status.status-bekliyor {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

/* ==============================================
   PWA YÜKLEME BUTONU (SADECE MOBİLDE GÖRÜNÜR)
   ============================================== */

.install-button {
    display: none; /* PC'de gizli */
    margin: 20px auto;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    max-width: 320px;
}

.install-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.install-button:active {
    transform: translateY(-1px);
}

.install-button svg {
    stroke-width: 2.5;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(255, 107, 53, 0.6);
    }
}

/* Sadece mobilde göster */
@media (max-width: 768px) {
    .install-button {
        display: flex; /* Mobilde görünür */
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Uygulama olarak açıldıysa butonu gizle */
@media (display-mode: standalone) {
    .install-button {
        display: none !important;
    }
}

/* iOS Safari standalone modu */
@media (max-width: 768px) and (-webkit-standalone) {
    .install-button {
        display: none !important;
    }
}

/* ============ FLOATING CONTACT BUTTONS ============ */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 12px;
}

.floating-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
    color: white;
}

.floating-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.floating-toggle.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-buttons.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-phone {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.floating-phone:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
}

.floating-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.floating-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #075e54);
}

.floating-instagram {
    background: linear-gradient(135deg, #e4405f, #c13584, #833ab4, #5851db);
}

.floating-instagram:hover {
    background: linear-gradient(135deg, #c13584, #833ab4, #5851db, #405de6);
}

/* Mobil uyum */
@media (max-width: 480px) {
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }

    .floating-toggle {
        width: 50px;
        height: 50px;
    }

    .floating-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .floating-btn span {
        display: none;
    }

    .floating-btn {
        padding: 12px;
        border-radius: 50%;
    }
}
