/* Global Mobile Fixes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f3f7fb;
    color: #0b2d5c;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Small screens - reduce padding */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* ================= LOGO ================= */

.logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    max-height: 64px !important;
    max-width: 100%;
    object-fit: cover;
}

/* ================= LOADING STATES ================= */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================= SNACKBAR ================= */
.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #1e293b;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
    position: fixed;
    z-index: 1100;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    white-space: normal;
    max-width: 90%;
}

@media (min-width: 600px) {
    .snackbar {
        min-width: 300px;
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
}

.snackbar.show {
    visibility: visible;
    animation: fadein 0.3s, fadeout 0.3s 2.7s;
}

@keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

@keyframes fadeout {
    from { bottom: 20px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

.snackbar.success { background-color: #4caf50; }
.snackbar.error { background-color: #f44336; }
.snackbar.info { background-color: #2196f3; }

/* ================= UTILITY CLASSES ================= */
.text-center {
    text-align: center;
}

.mobile-only {
    display: block;
}

@media (min-width: 769px) {
    .mobile-only {
        display: none;
    }
}

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
}