/* Basic styling for SAVA Tourism Intelligence web UI */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #e5edf5; color: #141b2b; }
a { color: #7bdff2; text-decoration: none; }
a:hover { text-decoration: underline; }

.main-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 30px; background: linear-gradient(90deg,#ffffff,#e0ecff); box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.logo-group { display: flex; align-items: center; gap: 16px; }
.logo-main { height: 56px; object-fit: contain; }
.logo-eu { height: 40px; object-fit: contain; }

.main-nav { display: flex; gap: 14px; font-size: 0.9rem; }
.main-nav a { padding: 6px 10px; border-radius: 999px; transition: background 0.2s, color 0.2s; color: #003366; }
.main-nav a:hover { background: rgba(0,51,102,0.08); color: #001a33; }

.user-info { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.btn-link { padding: 4px 10px; border-radius: 999px; border: 1px solid #003366; color: #003366; }

.page-content { padding: 24px 32px 60px; }
.hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; background: radial-gradient(circle at top left,#ffffff,#e3efff); padding: 24px 28px; border-radius: 18px; box-shadow: 0 4px 18px rgba(0,0,0,0.15); }
.hero-text h1 { font-size: 1.9rem; margin-bottom: 8px; }
.hero-subtitle { color: #000000; max-width: 600px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; margin-top: 24px; }
.card { background: #ffffff; border-radius: 16px; padding: 18px 18px 22px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.06); }
.card h2 { margin-bottom: 10px; font-size: 1.1rem; }
.card canvas { width: 100%; height: 220px; }

.main-footer { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background: #ffffff; border-top: 1px solid rgba(0,0,0,0.08); position: fixed; bottom: 0; left: 0; right: 0; }
.logo-footer { height: 32px; object-fit: contain; }
.footer-center p { font-size: 0.8rem; color: #a9b3c1; }
.footer-left, .footer-right, .footer-logos { width: auto; display: flex; justify-content: center; gap: 16px; }

/* Tables and forms */
.table-scroll { max-width: 100%; overflow: auto; margin-top: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table thead { background: rgba(10,35,60,0.9); color: #ffffff; }
.data-table th, .data-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }

.data-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin-top: 10px; }
.data-form label { font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.data-form input, .data-form select { padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.15); background: #f3f3f3; color: #000000; }

.form-inline { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-inline label { font-size: 0.85rem; display: flex; gap: 4px; align-items: center; }
.form-inline select { padding: 4px 6px; border-radius: 999px; border: 1px solid rgba(0,0,0,0.2); background: #f3f3f3; color: #000000; }

.btn-danger { padding: 4px 8px; border-radius: 999px; border: none; background: linear-gradient(90deg,#ff4d6d,#ff758f); color: #1b1b1b; font-size: 0.75rem; cursor: pointer; }

/* Login page */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(circle at top,#163a5f,#020817); position: relative; overflow: hidden; }

/* Wave animation */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wave1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%230077b6'/%3E%3C/svg%3E");
    opacity: 0.7;
    animation: wave 25s linear infinite;
    z-index: 1;
}

.wave2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,90 400,0 600,60 C800,120 1000,30 1200,60 L1200,120 L0,120 Z' fill='%2300b4d8'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: wave 20s linear infinite;
    z-index: 2;
    bottom: -10px;
}

.wave3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,90 C150,30 350,90 600,30 C850,90 1050,30 1200,90 L1200,120 L0,120 Z' fill='%2390e0ef'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: wave 15s linear infinite;
    z-index: 3;
    bottom: -5px;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.login-wrapper { max-width: 420px; width: 100%; padding: 20px; position: relative; z-index: 10; }
.login-card { background: #ffffff; border-radius: 18px; padding: 24px 24px 28px; box-shadow: 0 16px 48px rgba(0,0,0,0.7); border: 1px solid rgba(123,223,242,0.25); }
.login-logo-row { display: flex; justify-content: center; gap: 18px; align-items: center; margin-bottom: 10px; }
.login-card h1 { text-align: center; margin-bottom: 4px; font-size: 1.5rem; color: #003366; }
.subtitle { text-align: center; margin-bottom: 18px; color: #003366; font-size: 0.9rem; }

.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.login-form label { font-size: 0.85rem; display: flex; flex-direction: column; gap: 4px; color: #003366; }
.login-form input { padding: 8px 10px; border-radius: 10px; border: 1px solid #003366; background: #f5f5f5; color: #003366; }
.login-form input:focus { outline: none; border-color: #7bdff2; box-shadow: 0 0 0 1px rgba(123,223,242,0.5); }

.btn-primary { margin-top: 8px; padding: 9px 0; border-radius: 999px; border: none; background: linear-gradient(90deg,#00b4d8,#90e0ef); color: #02151f; font-weight: 600; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.5); }

.alert { padding: 8px 10px; border-radius: 10px; margin-bottom: 10px; font-size: 0.85rem; }
.alert-error { background: rgba(255,77,77,0.1); border: 1px solid rgba(255,99,132,0.7); color: #ffc9d0; }

.login-footer-logos { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; background: #ffffff; padding: 12px 16px; border-radius: 10px; }
.logo-small { height: 28px; }

@media (max-width: 768px) {
    .main-header { flex-wrap: wrap; gap: 10px; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .page-content { padding: 18px 14px 60px; }
    .hero { flex-direction: column; align-items: flex-start; }
}
