/* ========================================
   DocDaily - Custom Styles
   Healthcare Management System
   ======================================== */

/* CSS Variables - Healthcare Color Palette */
:root {
    /* Primary Colors - Trust Blue */
    --primary-color: #0B76D4;
    --primary-dark: #085AA7;
    --primary-light: #3B95E0;
    
    /* Secondary Colors - Calming Teal */
    --secondary-color: #16B4B0;
    --secondary-light: #5ECFCC;
    
    /* Accent Colors - Medical Green */
    --accent-color: #4CAF7B;
    --accent-light: #7DD4A3;
    
    /* Neutral Colors */
    --background: #F8FAFB;
    --foreground: #1A2B3D;
    --muted: #E8EEF2;
    --muted-foreground: #6B7C8E;
    --border: #D5DCE3;
    
    /* Status Colors */
    --success: #22A06B;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0EA5E9;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(11, 118, 212, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(11, 118, 212, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(11, 118, 212, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(11, 118, 212, 0.12);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Global Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    padding: 1rem 0;
    transition: all var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

.navbar-nav .nav-link {
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.btn-demo {
    border-radius: 0.5rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(11, 118, 212, 0.05) 0%, 
        rgba(22, 180, 176, 0.05) 50%, 
        rgba(76, 175, 123, 0.05) 100%);
    z-index: -1;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-decoration-1 {
    top: 5rem;
    right: 5%;
    width: 300px;
    height: 300px;
    background-color: rgba(11, 118, 212, 0.1);
}

.hero-decoration-2 {
    bottom: 5rem;
    left: 5%;
    width: 400px;
    height: 400px;
    background-color: rgba(22, 180, 176, 0.1);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-primary {
    background-color: rgba(11, 118, 212, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.benefit-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 576px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.stat-item .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
}

.stat-item .stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero-image-wrapper {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(76, 175, 123, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.badge-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0;
}

.badge-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    background-color: rgba(232, 238, 242, 0.3);
}

.feature-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(11, 118, 212, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(11, 118, 212, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.feature-card .card-text {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* ========================================
   Case Study Section
   ======================================== */

.case-study-card {
    border: 2px solid rgba(11, 118, 212, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.case-study-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .case-study-image {
        height: 100%;
    }
}

.quote-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.case-study-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.case-study-tags {
    margin-bottom: 1.5rem;
}

.case-study-tags .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.case-study-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.case-study-conclusion {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.case-study-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 576px) {
    .case-study-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   Pricing Section
   ======================================== */

.pricing-section {
    background-color: rgba(232, 238, 242, 0.3);
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card-popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--foreground);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
}

.pricing-price .asterisk {
    color: var(--muted-foreground);
    font-size: 1.25rem;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-features li i {
    color: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ========================================
   Demo Section
   ======================================== */

.demo-info-card,
.demo-form-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.demo-benefit {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-benefit-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(11, 118, 212, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-benefit-icon i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.demo-benefit-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-benefit-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

.contact-info {
    background-color: rgba(232, 238, 242, 0.5);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.contact-info h6 {
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.contact-item i {
    width: 16px;
}

.demo-form-card .form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: var(--transition);
}

.demo-form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(11, 118, 212, 0.15);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: 3rem 0 1rem;
}

.footer-brand .brand-text {
    color: var(--background);
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(248, 250, 251, 0.8);
    margin-top: 1rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--background);
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(248, 250, 251, 0.8);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(248, 250, 251, 0.8);
    font-size: 0.875rem;
}

.footer-contact i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(248, 250, 251, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(248, 250, 251, 0.8);
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(248, 250, 251, 0.8);
    font-size: 0.875rem;
    margin-left: 1.5rem;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Toast Notifications
   ======================================== */

.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

/* ========================================
   Scrollbar Customization
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--muted);
}

::-webkit-scrollbar-thumb {
    background: rgba(11, 118, 212, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 992px) {
    .hero-section {
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .btn-demo {
        width: 100%;
        margin-top: 0.5rem !important;
    }
}

@media (max-width: 576px) {
    .toast-container {
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
}