:root {
    --primary: #2c3e50;
    --secondary: #3498db;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
}

header {
    background: var(--primary);
    color: white;
    padding: 1rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
}

.auth-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

label {
    display: block;
    margin: 1rem 0;
}

input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
}

button {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.error {
    color: red;
    margin: 1rem 0;
}

.lang-switcher {
    margin-left: auto;
}

.dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

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

textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.5rem;
}

.profile-section, .order-section {
    background: #f9f9f9;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.admin-dashboard {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.status-form {
    display: inline-block;
}

select {
    padding: 0.3rem;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.delete-btn {
    background: #e74c3c;
    padding: 0.3rem 0.6rem;
    font-size: 0.9rem;
}

.users table td:nth-child(3),
.orders table td:nth-child(4) {
    text-transform: capitalize;
}

section.users {
    margin-top: 4rem;
}

.status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.status-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background: #eee;
    position: relative;
}

.status-item::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 20px solid #eee;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    z-index: 1;
}

.status-item:last-child::after {
    display: none;
}

.status-item.active {
    background: var(--secondary);
    color: white;
}

.status-item.active::after {
    border-left-color: var(--secondary);
}

.tracking-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.order-details p {
    font-size: 1.1rem;
    margin: 1rem 0;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: white;
    opacity: 0;
}

.hero-text {
    font-size: 4rem;
    margin-bottom: 1rem;
    transform: translateY(50px);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    padding: 5rem 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-size: contain;
}

.shipping-icon { background-image: url('/assets/img/shipping.png'); }
.tracking-icon { background-image: url('/assets/img/tracking.png'); }
.support-icon { background-image: url('/assets/img/support.png'); }

/* CTA Section */
.cta-section {
    padding: 5rem 1rem;
    background: #f9f9f9;
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    background: #2ecc71;
    color: white;
    border-radius: 50px;
    cursor: pointer;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    opacity: 0;
}

.hero-scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        font-size: 2.5rem;
    }
}

.error-message {
    padding: 1rem;
    background: #ffe6e6;
    color: #cc0000;
    border: 1px solid #cc0000;
    border-radius: 4px;
    margin: 1rem 0;
}

.success-message {
    padding: 1rem;
    margin: 1rem 0;
    background: #e6ffe6;
    color: #006400;
    border: 1px solid #006400;
    border-radius: 4px;
}

/* Add animation */
.success-message {
    animation: slideIn 0.5s ease-out;
}

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

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

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

.animated-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neon-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.neon-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

.btn-gradient {
    background: linear-gradient(45deg, #007bff, #00ff88);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.alert-box {
    padding: 15px 25px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-box.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Floating Labels */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Creates guaranteed space between label and input */
}

.form-group label {
  margin-bottom: 0; /* Let gap handle spacing */
  font-size: 0.9rem;
  color: var(--dark-text);
  order: 1; /* Ensure label stays above input */
}

.form-group input,
.form-group textarea {
  order: 2; /* Ensure input stays below label */
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
}

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

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

@keyframes hoverEffect {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.animated-slide-down {
    animation: slideDown 0.5s ease-out;
}

.animated-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.animated-hover:hover {
    animation: hoverEffect 0.6s ease-in-out;
}

/* Material Design Styles */
.material-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.material-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin: 2rem 0;
}

.floating-label {
    position: absolute;
    left: 0;
    top: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    color: #666;
    font-size: 1rem;
}

input:focus ~ .floating-label,
textarea:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label,
textarea:not(:placeholder-shown) ~ .floating-label {
    top: -1.2rem;
    left: 0;
    font-size: 0.8rem;
    color: #2196F3;
}

.underline {
    height: 2px;
    background: #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transition: background 0.3s;
}

input:focus ~ .underline,
textarea:focus ~ .underline {
    background: #2196F3;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-denied { background: #f8d7da; color: #721c24; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2196F3;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin: 1rem 0;
}

.eta-picker {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3rem;
    font-size: 0.9rem;
}

/* Product links */
a[target="_blank"]::after {
    content: "↗";
    font-size: 0.8em;
    margin-left: 0.3em;
    opacity: 0.7;
}

.table-responsive {
    overflow-x: auto;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table td, .order-table th {
    padding: 12px;
    border: 1px solid #eee;
}

.product-link {
    color: #2196F3;
    font-size: 0.9em;
}

.product-link:hover {
    text-decoration: underline;
}

.eta-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.status-select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2d3748;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.form-input:focus {
    border-color: #4299e1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Error/Success Messages */
.error-mobile, .success-mobile {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.error-mobile {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.success-mobile {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #16a34a;
}

/* Status Colors */
.status-pending { background: #fff3cd; }
.status-approved { background: #d4edda; }
.status-shipped { background: #cce5ff; }
.status-delivered { background: #d4edda; }
.status-denied { background: #f8d7da; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-row {
    animation: fadeIn 0.3s ease-out;
}