/* Poslaju Tracking - Futuristic Glassmorphism Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #00ffff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ff9500, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffff00, transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 10s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3e%3ccircle cx="20" cy="20" r="2" fill="%2300ffff" opacity="0.5"%3e%3canimateTransform attributeName="transform" type="translate" values="0,0; 10,30; 0,60" dur="10s" repeatCount="indefinite"/%3e%3c/circle%3e%3ccircle cx="80" cy="40" r="1" fill="%23ff9500" opacity="0.7"%3e%3canimateTransform attributeName="transform" type="translate" values="0,0; -20,20; 0,40" dur="8s" repeatCount="indefinite"/%3e%3c/circle%3e%3ccircle cx="50" cy="80" r="1.5" fill="%2300ff00" opacity="0.6"%3e%3canimateTransform attributeName="transform" type="translate" values="0,0; 15,-25; 0,-50" dur="12s" repeatCount="indefinite"/%3e%3c/circle%3e%3c/svg%3e');
    background-size: 400px 400px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100vh); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(45deg, #ff9500, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff9500, #00ffff);
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover,
.nav-link.active {
    color: #ff9500;
    text-shadow: 0 0 10px #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff9500, #00ffff);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ff9500 0%, #00ffff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

.page-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
}

/* Tracking Form Container */
.tracking-form-container {
    max-width: 500px;
    width: 100%;
    position: relative;
    margin-bottom: 3rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.2), transparent);
    transition: left 0.7s ease;
}

.form-card:hover::before {
    left: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ff9500;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: #ff9500;
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    border: none;
    border-radius: 15px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 149, 0, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.error-message,
.success-message {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.error-message {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.4);
    color: #ff8a80;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #a5d6a7;
}

/* Results Container */
.results-container {
    display: none;
    max-width: 1000px;
    width: 100%;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.results-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.results-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.results-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ff9500;
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

/* Status Card Specific Styles */
.status-card {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(0, 255, 255, 0.1));
}

.status-display {
    text-align: center;
}

.current-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.status-badge {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3); }
    100% { box-shadow: 0 10px 25px rgba(255, 149, 0, 0.6); }
}

.status-details {
    text-align: center;
}

.status-location {
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.status-timestamp {
    font-size: 0.9rem;
    color: #b0b0b0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #ff9500, #00ffff);
}

.timeline-event {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #ff9500;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff9500;
    border: 3px solid rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.6);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-status {
    font-weight: 600;
    color: #ff9500;
    font-size: 1rem;
}

.event-timestamp {
    font-size: 0.85rem;
    color: #888;
}

.event-location {
    color: #b0b0b0;
    margin-bottom: 0.25rem;
}

.event-description {
    color: #ffffff;
    line-height: 1.5;
}

/* Delivery Section */
.delivery-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

/* Sample Numbers */
.sample-numbers {
    max-width: 600px;
    width: 100%;
    margin-top: 3rem;
    text-align: center;
}

.sample-numbers h3 {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.sample-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sample-item:hover {
    background: rgba(255, 149, 0, 0.1);
    border-color: rgba(255, 149, 0, 0.3);
    transform: translateY(-2px);
}

.sample-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.sample-status {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .main-container {
        padding: 6rem 1rem 4rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .tracking-timeline {
        padding-left: 1.5rem;
    }
    
    .sample-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
}