/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --background-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/*.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
}*/

/* Loading Animation */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-gradient);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80%;
    max-width: 400px;
    max-height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.loader-image {
    height: 10px;
    border-radius: 5px;
    width: 2px;
    padding-right: 213px;
    margin-bottom: 130px;
    font-size: 1.3rem;
    align-items: center;
}

.loader-bar {
    height: 10px;
    background: linear-gradient(90deg, #faf9f7,  #eee3d2, #f0c672, #fcf1f0, #44f844);
    border-radius: 5px;
    width: 0;
    animation: load 3s ease-in-out infinite;
}

.loader-text {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

@keyframes load {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/*Start*/
header {
    background: linear-gradient(135deg, #2c3e50, #4a69bd);
    color: white;
    padding: 25px 0;
    text-align: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 65px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.search-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #4a69bd;
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.2);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-box select {
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    min-width: 180px;
    cursor: pointer;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    justify-content: center;
    padding-left: 23px;
    padding-right: 20px;
    gap: 25px;
}

.visa-table-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-bottom: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(135deg, #4a69bd, #6a89cc);
    color: white;
}

th, td {
    padding: 16px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

th:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

th i {
    margin-left: 8px;
    font-size: 0.9rem;
}

tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.bookmark-btn {
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.bookmark-btn:hover {
    color: #f39c12;
}

.bookmarked {
    color: #f39c12;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bookmarks-panel, .country-details {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.panel-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: #4a69bd;
}

.bookmark-item {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-item:last-child {
    margin-bottom: 0;
}

.remove-bookmark {
    color: #e74c3c;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
}

.country-details h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
}

.detail-item strong {
    min-width: 120px;
    color: #2c3e50;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #777;
    font-style: italic;
}

/* Footer */
footer {
    background: #182848;
    color: white;
    padding: 3rem 5% 1rem;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: auto;
    height: 250px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-section p {
    margin-bottom: 1rem;
    color: #bbb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

/* Scroll Up Button Styles */
.scroll-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #021335, #253c74,#010c30, #0b2861);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-up-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-up-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-up-btn:active {
    transform: translateY(0);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Background Animation */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links li a {
        margin-left: 0;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 3rem 5%;
        padding: auto;
        width: auto;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding-left: 60px;
        padding-right: 54px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }

    .sidebar {
        padding-left: 20px;
        padding-right: 20px;
    }
    

    .visa-table-container {
        width: 340px;
        size-adjust: 24px;
        padding-right: 80px;
        height: auto;
    }

    table {
        width: 36%;
        border-collapse: collapse;
    }

    th, td {
        padding: 8px 1px;
        text-align: left;
        border-bottom: 2px solid #eee;
    }
    
    th {
        font-weight: 320;
        cursor: pointer;
        position: relative;
    }

    .footer-content {
        grid-template-columns: 1fr;
        height: auto;
        width: auto;
    }
}
@media (max-width: 480px) {
    .hero {
        padding: 110px 0 58px;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .container {
        font-size: 0.8rem;
        width: auto;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }
}

@media (max-width: 168px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 30px;
        background-color: white;
        width: 40%;
        flex-direction: column;
        align-items: center;
        padding: 0.4rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 0.3rem 0;
    }

    .nav-links li a {
        margin-left: 0;
    }

    .burger {
        display: block;
    }

    .hero h1 {
        font-size: 0.5rem;
    }

    .hero p {
        font-size: 0.4rem;
    }

    .container {
        padding: 1rem 2%;
    }

    .main-content {
        grid-template-columns: 1fr;
        height: auto;
        width: auto;
    }
}

/* Responsive Design */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
}


/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #27ae60;
}
