/* Main styles for My Clinical Writer */

/* Import Google Fonts if not already imported */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    color: #1F2937;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .logo img {
    max-height: 40px;
    width: auto;
}

/* Navbar */
.navbar {
    padding: 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    padding: 10px 0 10px 30px;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    transition: 0.3s;
}

.navbar a:hover {
    color: #3B82F6;
}

.navbar .getstarted {
    padding: 8px 20px;
    margin-left: 30px;
    border-radius: 6px;
    color: #fff;
    background: #3B82F6;
    font-weight: 600;
}

.navbar .getstarted:hover {
    background: #2563EB;
    transform: translateY(-1px);
}

.navbar .login {
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 6px;
    color: #3B82F6;
    background: transparent;
    border: 1px solid #3B82F6;
    font-weight: 600;
}

.navbar .login:hover {
    background: #3B82F6;
    color: white;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    color: #374151;
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .navbar ul {
        display: none;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(31, 41, 55, 0.9);
    transition: 0.3s;
    z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
}

.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
}

.navbar-mobile a {
    padding: 10px 20px;
    font-size: 15px;
    color: #374151;
}

.navbar-mobile a:hover {
    color: #3B82F6;
}

.navbar-mobile .getstarted,
.navbar-mobile .login {
    margin: 15px;
    display: block;
    text-align: center;
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: #3B82F6;
    border: 2px solid #3B82F6;
}

.btn-outline-primary:hover {
    background: #3B82F6;
    color: white;
}

/* Animations */
.animated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: #3B82F6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s;
}

.back-to-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0;
}

.back-to-top:hover {
    background: #2563EB;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: #fff;
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid #3B82F6;
    border-top-color: #E5E7EB;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Container adjustments */
@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
}