/* Welcome Page Styles */
.welcome-page {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Hero Section */
.hero-section {
    color: white;
    padding: 20px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo i {
    font-size: 3rem;
}

.brand-logo .blood-icon {
    width: 3rem;
    height: 3rem;
}

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

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
}

.features-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.25rem;
    width: 30px;
    margin-right: 1rem;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.dashboard-preview {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.dashboard-preview:hover {
    transform: rotate(0deg) scale(1.05);
}

.preview-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 8px 15px;
    border-bottom: 1px solid #4a5568;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: white;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.preview-brand i {
    font-size: 0.8rem;
}

.brand-name {
    font-weight: 700;
    color: white;
}

.divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}

.section-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.65rem;
}

.preview-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
}

.current-time-mini {
    display: flex;
    align-items: center;
    gap: 2px;
    color: white;
}

.current-time-mini i {
    font-size: 0.5rem;
}

.group-filter-mini {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    padding: 2px 4px;
}

.mini-select {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.55rem;
    outline: none;
    cursor: pointer;
}

.connection-mini i {
    color: #38a169;
    font-size: 0.6rem;
}

.action-buttons-mini {
    display: flex;
    gap: 6px;
}

.action-buttons-mini i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.55rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-buttons-mini i:hover {
    color: white;
}

.preview-content {
    padding: 0;
}

/* Realistic Table Preview */
.preview-table {
    width: 100%;
    font-size: 0.75rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 0.9fr;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 8px 0;
}

.header-cell {
    padding: 0 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.7rem;
}

.header-cell i {
    font-size: 0.6rem;
    margin-right: 4px;
    color: #6c757d;
}

.table-body {
    max-height: 200px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 0.9fr;
    padding: 6px 0;
    border-bottom: 1px solid #f8f9fa;
    align-items: center;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: #f8f9fa;
}

.table-row:last-child {
    border-bottom: none;
}

.cell {
    padding: 0 8px;
    font-size: 0.7rem;
}

.cell strong {
    color: #495057;
    font-weight: 600;
}

.room-badge {
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 500;
}

.glucose-value {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

.glucose-value .value {
    font-size: 0.8rem;
}

.glucose-value small {
    font-size: 0.55rem;
    opacity: 0.8;
    font-weight: 400;
}

.glucose-value.normal {
    background: #d4edda;
    color: #155724;
}

.glucose-value.high {
    background: #fff3cd;
    color: #856404;
}

.glucose-value.low {
    background: #f8d7da;
    color: #721c24;
}

.trend {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 600;
}

.trend .delta {
    font-size: 0.65rem;
}

.trend .arrow {
    font-size: 0.8rem;
}

.trend.up { color: #ff8c00; }
.trend.down { color: #e53e3e; }
.trend.stable { color: #718096; }

.time-cell {
    color: #2d3748;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 400;
}

.time-cell i {
    font-size: 0.6rem;
}

.time-cell.moderate {
    color: #ff8c00;
    font-weight: 600;
}

.time-cell.critical {
    color: #e53e3e;
    font-weight: 700;
    animation: blinkWarning 2s infinite;
}

@keyframes blinkWarning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Chart Demo Section */
.chart-demo-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.chart-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.chart-title h4 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.chart-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
    display: block;
}

.chart-controls {
    display: flex;
    gap: 5px;
}

.chart-controls .btn {
    font-size: 0.8rem;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.chart-controls .btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.chart-controls .btn.active {
    background: white;
    color: #1a202c;
    border-color: white;
}

.chart-content {
    padding: 0;
}

.chart-canvas {
    padding: 20px;
    background: white;
}

.glucose-chart {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.chart-stats {
    background: #f8f9fa;
    padding: 20px 30px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    border-top: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    min-width: 120px;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 3px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-value.text-success {
    color: #38a169 !important;
}

.stat-value.text-warning {
    color: #ff8c00 !important;
}

/* Responsive chart */
@media (max-width: 768px) {
    .chart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chart-controls {
        justify-content: center;
    }
    
    .chart-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        margin-bottom: 15px;
    }
}

/* Sections */
.about-section {
    background: white;
}

.features-section {
    background: #f8f9fa !important;
}

.contact-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 2rem;
}

/* Info Cards */
.info-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
}

.info-icon {
    margin-bottom: 1.5rem;
}

.info-icon i {
    font-size: 3rem;
}

.info-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c5282;
}

.info-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Feature Boxes */
.feature-box {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5282;
}

.feature-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

/* Contact Cards */
.contact-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    margin-bottom: 1rem;
}

.contact-icon i {
    font-size: 2.5rem;
}

.contact-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c5282;
}

.contact-card p {
    margin: 0;
    font-weight: 500;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }
    
    .dashboard-preview:hover {
        transform: scale(1.02);
    }
    
    .cta-buttons {
        text-align: center;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .feature-box {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

.dashboard-preview {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Screenshot - pasivní zobrazení */
.hero-screenshot {
    width: 100%;
    max-width: 450px;
    height: auto;
    opacity: 0.85;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .hero-screenshot {
        max-width: 350px;
        margin-top: 2rem;
    }
}

