@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #1a365d;
    --primary-light: #2c4f74;
    --accent: #3b82f6;
    --bg-gradient: linear-gradient(135deg, #1a365d 0%, #2c4f74 100%);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Splash Screen */
.splash-container {
    height: 100vh;
    width: 100vw;
    background: #e0f2fe; /* Light blue background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-logo {
    width: 250px;
    height: 250px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: zoomInOut 2s ease-in-out infinite;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Frame Aesthetic */
.app-frame {
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

/* List Items */
.list-container {
    padding: 20px;
}

.list-item {
    background: #f1f5f9;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:hover {
    background: var(--primary);
    color: white;
}

/* Custom Buttons */
.omsys-btn-secure {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.omsys-btn-secure:hover {
    background: #1e3a8a;
}

.omsys-input-group {
    margin-bottom: 20px;
}

.omsys-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.omsys-input-field {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

/* Super Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-main {
    flex-grow: 1;
    margin-left: 280px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-header {
    height: 70px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Public Country Selection */
.country-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8fafc;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

.country-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(26, 54, 93, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid #e2e8f0;
    border-bottom: 5px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.country-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
    border-color: var(--accent);
    border-bottom: 5px solid var(--primary);
}

.country-card-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.country-flag {
    width: 45px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.country-card:hover .country-flag {
    transform: scale(1.1);
}

.country-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.country-card:hover .country-name {
    color: var(--accent);
}

.country-select-btn {
    opacity: 0;
    transform: translateY(15px);
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 16px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 80%;
    box-shadow: 0 4px 10px rgba(26, 54, 93, 0.2);
}

.country-card:hover .country-select-btn {
    opacity: 1;
    transform: translateY(0);
}
