/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #22223b;
    background-color: #faf9fe;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 20px rgba(91, 53, 177, 0.1);
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    color: #22223b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #22223b;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #5b35b1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #22223b;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #5b35b1;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-animation {
    width: 200px;
    height: 200px;
    position: relative;
}

.heart-beat {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: heartbeat 2s infinite;
}

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

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #22223b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(91, 53, 177, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22223b;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Form Styles */
.launch-form {
    padding: 4rem 0;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(91, 53, 177, 0.1);
}

.patient-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #22223b;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #5b35b1;
}

.submit-btn {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.3);
}

/* Available Users Section */
.available-users {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.available-users h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22223b;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.user-id {
    font-weight: 600;
    color: #5b35b1;
    min-width: 60px;
}

.user-name {
    flex: 1;
    color: #22223b;
}

.quick-login-btn {
    background: #5b35b1;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quick-login-btn:hover {
    background: #7545e6;
}

.users-note {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Messages */
.error-message, .success-message {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.error-message {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.success-message {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(91, 53, 177, 0.1);
}

.about-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #22223b;
}

.about-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #666;
}

.about-card ul {
    margin-left: 1.5rem;
    color: #666;
}

.about-card li {
    margin-bottom: 0.5rem;
}

.about-card.full-width {
    grid-column: 1 / -1;
}

    .about-card h3 {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 1.5rem 0 1rem 0;
        color: #5b35b1;
    }

    .developers-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-top: 1.5rem;
    }

    .developer-item {
        text-align: center;
        padding: 1.5rem;
        background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
        border-radius: 12px;
        border: 1px solid #e8ecff;
    }

    .developer-item h3 {
        color: #5b35b1;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .developer-item p {
        color: #22223b;
        font-size: 1.1rem;
        margin: 0;
        font-weight: 500;
    }

/* Hardware Page Styles */
.hardware-section {
    margin: 3rem 0;
}

.hardware-section h2 {
    color: #5b35b1;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 1rem;
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hardware-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.1);
    border-left: 5px solid #5b35b1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 53, 177, 0.2);
}

.hardware-card h3 {
    color: #5b35b1;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hardware-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hardware-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-tag {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.software-category {
    margin: 2rem 0;
}

.software-category h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #5b35b1;
}

.software-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.1);
    margin-bottom: 1.5rem;
}

.software-card h4 {
    color: #5b35b1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.software-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(91, 53, 177, 0.1);
    border-top: 3px solid #7545e6;
}

.software-item h4 {
    color: #5b35b1;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.software-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(91, 53, 177, 0.1);
    border-right: 4px solid #28a745;
}

.tool-item h4 {
    color: #28a745;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.tool-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.architecture-diagram {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.arch-layer {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.1);
    border: 2px solid #5b35b1;
}

.arch-layer h3 {
    color: #5b35b1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.arch-layer p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.arch-arrow {
    font-size: 2rem;
    color: #5b35b1;
    font-weight: bold;
    margin: 1rem 0;
}

/* Responsive Hardware Page */
@media (max-width: 768px) {
    .hardware-grid,
    .software-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .hardware-section h2 {
        font-size: 1.5rem;
    }
    
    .hardware-card,
    .software-card,
    .software-item,
    .tool-item {
        padding: 1.5rem;
    }
    
    .architecture-diagram {
        padding: 2rem 1rem;
    }
    
    .arch-layer {
        padding: 1.5rem;
    }
}

/* Legal Page Styles */
.legal-section {
    margin: 3rem 0;
}

.legal-section h2 {
    color: #5b35b1;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 1rem;
}

.legal-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.1);
    margin-bottom: 2rem;
    border-left: 5px solid #5b35b1;
}

.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.legal-header.kvkk {
    border-bottom-color: #dc3545;
}

.legal-header.gdpr {
    border-bottom-color: #007bff;
}

.legal-header.hipaa {
    border-bottom-color: #28a745;
}

.legal-header.implementation {
    border-bottom-color: #ffc107;
}

.legal-header.warning {
    border-bottom-color: #fd7e14;
}

.legal-header h3 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.legal-badge {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.legal-badge.warning {
    background: linear-gradient(135deg, #fd7e14, #ff8c00);
}

.legal-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.legal-requirements h4 {
    color: #5b35b1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-requirements ul {
    margin-left: 1.5rem;
}

.legal-requirements li {
    color: #555;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.legal-requirements strong {
    color: #5b35b1;
}

.security-measures h4 {
    color: #5b35b1;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.measure-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.measure-item:hover {
    border-color: #5b35b1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(91, 53, 177, 0.2);
}

.measure-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.measure-item h5 {
    color: #5b35b1;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.measure-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.compliance-table {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(91, 53, 177, 0.1);
    overflow-x: auto;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.legal-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
}

.legal-table tr:hover {
    background: #f8f9fa;
}

.status-compliant {
    background: #28a745;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.legal-card.warning {
    border-left-color: #fd7e14;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
}

.legal-card.warning ul {
    margin-left: 1.5rem;
}

.legal-card.warning li {
    color: #856404;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Responsive Legal Page */
@media (max-width: 768px) {
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-card {
        padding: 1.5rem;
    }
    
    .legal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .measures-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-table {
        font-size: 0.8rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Dashboard Styles - Completely Redesigned */
.dashboard-body {
    background: #f8f9fa;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
}

/* Sidebar - Modern Design */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #5b35b1 0%, #667eea 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(91, 53, 177, 0.2);
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.user-profile {
    text-align: center;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.user-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.user-role {
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    display: inline-block;
}

.user-details {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Sidebar Navigation */
.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    margin: 0.2rem 0;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.quick-actions {
    margin-bottom: 1.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-icon {
    margin-right: 0.8rem;
    opacity: 0.8;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.logout-icon {
    margin-right: 0.8rem;
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
}

.content-header {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.header-content h1 {
    margin: 0 0 0.5rem 0;
    color: #5b35b1;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-description {
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.header-actions {
    text-align: right;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5b35b1;
}

.current-time {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.2rem;
}

/* Content Area */
.content-area {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

/* Overview Content */
.overview-content {
    padding: 2rem;
}

.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Primary Card - Son Ölçüm (Koyu mavi, beyaz yazı) */
.summary-card.primary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    color: white;
}

/* Secondary Card - Toplam Ölçüm (Koyu yeşil, beyaz yazı) */
.summary-card.secondary {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    color: white;
}

/* Success Card - Analiz Sonuçları (Koyu turuncu, beyaz yazı) */
.summary-card.success {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
    color: white;
}

/* Info Card - AI Analizleri (Koyu mor, beyaz yazı) */
.summary-card.info {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.3);
    color: white;
}



.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.7));
}

.summary-card:hover {
    transform: translateY(-8px);
}

.summary-card.primary:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.summary-card.secondary:hover {
    box-shadow: 0 15px 35px rgba(240, 147, 251, 0.4);
}

.summary-card.success:hover {
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

.summary-card.info:hover {
    box-shadow: 0 15px 35px rgba(67, 233, 123, 0.4);
}

.card-icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.card-content h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.95;
}

/* Tüm kartlarda beyaz başlık */
.summary-card .card-content h3 {
    color: white;
}

.measurement-values {
    display: grid;
    gap: 1rem;
}

.value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-item .label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.value-item .value {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tüm kartlarda beyaz istatistik değeri */
.summary-card .stat-value {
    color: white;
}

.stat-description {
    margin: 0;
    font-size: 0.9rem;
}

/* Tüm kartlarda beyaz açıklama */
.summary-card .stat-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.chart-container h3 {
    margin: 0 0 2rem 0;
    color: #5b35b1;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.recent-activity h3 {
    margin: 0 0 2rem 0;
    color: #5b35b1;
    font-size: 1.4rem;
    font-weight: 600;
}

.activity-list {
    display: grid;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.activity-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
    border-color: rgba(91, 53, 177, 0.2);
}

.activity-icon {
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 0.3rem 0;
    color: #5b35b1;
    font-size: 1rem;
    font-weight: 600;
}

.activity-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.activity-time {
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .health-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        margin-top: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .header-actions {
        text-align: center;
    }
    
    .health-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .activity-time {
        align-self: center;
    }
    
    .overview-content {
        padding: 1.5rem;
    }
}

/* Data List Page Styles */
.data-content {
    padding: 2rem;
}

.data-content .page-intro {
    margin-bottom: 2rem;
    text-align: center;
}

.data-content .page-intro h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.data-content .page-intro p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.data-content .data-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.data-content .summary-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.data-content .stat-item {
    text-align: center;
}

.data-content .stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.data-content .stat-value {
    display: block;
    color: #5b35b1;
    font-size: 1.5rem;
    font-weight: 600;
}

.data-content .table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.data-content .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.data-content .table-header h3 {
    color: #2c3e50;
    margin: 0;
}

.data-content .table-actions {
    display: flex;
    gap: 1rem;
}

.data-content .data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-content .data-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.data-content .data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.data-content .data-table tr:hover {
    background: #f8f9fa;
}

.data-content .date-cell .date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.data-content .date-cell .date {
    font-weight: 600;
    color: #2c3e50;
}

.data-content .date-cell .time {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.data-content .systolic-cell,
.data-content .diastolic-cell,
.data-content .hr-cell,
.data-content .pp-cell {
    text-align: center;
}

.data-content .value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.data-content .unit {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.25rem;
}

.data-content .pp-cell .value.low {
    color: #e74c3c;
}

.data-content .pp-cell .value.high {
    color: #e67e22;
}

.data-content .pp-cell .value.normal {
    color: #27ae60;
}

.data-content .status-cell {
    text-align: center;
}

.data-content .status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-content .status-badge.normal {
    background: #d5f4e6;
    color: #27ae60;
}

.data-content .status-badge.high {
    background: #fdebd0;
    color: #e67e22;
}

.data-content .status-badge.low {
    background: #fadbd8;
    color: #e74c3c;
}

.data-content .actions-cell {
    text-align: center;
}

.data-content .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.data-content .btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    color: #5b35b1;
    transition: all 0.3s ease;
}

.data-content .btn-icon:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.data-content .data-export {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.data-content .data-export h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.data-content .export-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.data-content .no-data {
    text-align: center;
    padding: 4rem 2rem;
}

.data-content .no-data-icon {
    margin-bottom: 2rem;
}

.data-content .no-data h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.data-content .no-data p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.data-content .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Data Page */
@media (max-width: 768px) {
    .data-content {
        padding: 1rem;
    }
    
    .data-content .summary-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-content .table-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .data-content .data-table {
        font-size: 0.9rem;
    }
    
    .data-content .data-table th,
    .data-content .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .data-content .export-options {
        flex-direction: column;
        align-items: center;
    }
}

/* Analysis Page Styles */
.analysis-content {
    padding: 2rem;
}

.analysis-header {
    text-align: center;
    margin-bottom: 2rem;
}

.analysis-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

.analysis-header p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.no-analysis {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.no-analysis-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-analysis h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.no-analysis p {
    margin: 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analysis-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.analysis-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.analysis-card .analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.analysis-card .analysis-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.analysis-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.analysis-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.metric-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.analysis-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary {
    background: #667eea;
    color: white;
}

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

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-metrics {
        grid-template-columns: 1fr;
    }
    
    .analysis-actions {
        flex-direction: column;
    }
} 

/* Algorithms Page Styles */
.algorithms-content {
    padding: 2rem;
}

.page-intro {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.page-intro h2 {
    color: #5b35b1;
    margin: 0 0 1rem 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-intro p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.analysis-results-section {
    margin-bottom: 3rem;
}

.analysis-results-section h3 {
    color: #5b35b1;
    margin: 0 0 2rem 0;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}

.data-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(91, 53, 177, 0.1);
    text-align: center;
}

.data-summary p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
}

.data-summary strong {
    color: #5b35b1;
    font-weight: 600;
}

.table-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.analysis-table th {
    background: linear-gradient(135deg, #5b35b1, #667eea);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analysis-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.analysis-table tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.analysis-table tr:last-child td {
    border-bottom: none;
}

.param-name {
    min-width: 180px;
}

.param-name strong {
    display: block;
    color: #5b35b1;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.param-unit {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-block;
}

.calculated-value {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
    text-align: center;
    min-width: 120px;
}

.reference-range {
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    min-width: 120px;
}

.algorithm {
    color: #495057;
    font-weight: 600;
    text-align: center;
    min-width: 140px;
    background: #e3f2fd;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #bbdefb;
}

.formula {
    color: #6c757d;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f8f9fa;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    min-width: 200px;
    text-align: center;
}

.comment {
    text-align: center;
    min-width: 100px;
}

/* Status Indicators */
.status-low {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #f5c6cb;
}

.status-normal {
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #c3e6cb;
}

.status-high {
    color: #ffc107;
    font-weight: 600;
    background: #fff3cd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ffeaa7;
}

.status-good {
    color: #28a745;
    font-weight: 600;
    background: #d4edda;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #c3e6cb;
}

.status-warning {
    color: #ffc107;
    font-weight: 600;
    background: #fff3cd;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ffeaa7;
}

.status-danger {
    color: #dc3545;
    font-weight: 600;
    background: #f8d7da;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #f5c6cb;
}

/* Overall Assessment */
.overall-assessment {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(91, 53, 177, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.overall-assessment h3 {
    color: #5b35b1;
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.assessment-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.assessment-summary p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.assessment-summary strong {
    color: #5b35b1;
    font-weight: 600;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid rgba(91, 53, 177, 0.1);
}

.no-results-icon {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.no-results h3 {
    color: #5b35b1;
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.no-results p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #5b35b1, #667eea);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 53, 177, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

/* Responsive Algorithms Table */
@media (max-width: 1200px) {
    .analysis-table {
        font-size: 0.85rem;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 1rem 0.8rem;
    }
    
    .formula {
        min-width: 150px;
        font-size: 0.8rem;
    }
    

}

@media (max-width: 768px) {
    .algorithms-content {
        padding: 1.5rem;
    }
    
    .page-intro {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-intro h2 {
        font-size: 1.8rem;
    }
    
    .measurement-selection {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .selection-container {
        gap: 0.8rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .analysis-table {
        min-width: 900px;
        font-size: 0.8rem;
    }
    
    .analysis-table th,
    .analysis-table td {
        padding: 0.8rem 0.6rem;
    }
    
    .param-name {
        min-width: 140px;
    }
    
    .calculated-value,
    .reference-range {
        min-width: 100px;
    }
    
    .algorithm {
        min-width: 120px;
    }
    
    .formula {
        min-width: 120px;
        font-size: 0.75rem;
    }
    

    
    .comment {
        min-width: 80px;
    }
    
    .overall-assessment {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .measurement-details {
        grid-template-columns: 1fr;
    }
} 

/* Info Icon Styles */
.info-icon {
    display: inline-block;
    margin-left: 0.5rem;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.info-icon svg {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.info-icon:hover svg {
    opacity: 1;
    transform: scale(1.2);
}

.info-icon:active svg {
    transform: scale(0.95);
}

/* Table Header Info Icon Positioning */
.data-content .data-table th {
    position: relative;
    white-space: nowrap;
}

.data-content .data-table th .info-icon {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

/* Responsive adjustments for info icons */
@media (max-width: 768px) {
    .data-content .data-table th {
        white-space: normal;
        min-width: 120px;
    }
    
    .info-icon {
        margin-left: 0.3rem;
    }
    
    .info-icon svg {
        width: 14px;
        height: 14px;
    }
} 

/* Algorithms Page Info Icon Styles */
.algorithms-content .param-name {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.algorithms-content .param-name .info-icon {
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.algorithms-content .param-name strong {
    flex: 1;
}

.algorithms-content .param-name .param-unit {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Ensure proper spacing in algorithms table */
.algorithms-content .analysis-table th,
.algorithms-content .analysis-table td {
    vertical-align: middle;
    padding: 1rem;
}

.algorithms-content .analysis-table .param-name {
    min-width: 200px;
}

/* Responsive adjustments for algorithms page */
@media (max-width: 768px) {
    .algorithms-content .param-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .algorithms-content .param-name .info-icon {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .algorithms-content .analysis-table .param-name {
        min-width: 150px;
    }
} 

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #5b35b1, #7545e6);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    display: block;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 1px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Footer Icons - Emojiler kaldırıldı */

/* Emoji'ler kaldırıldı */

/* Enhanced Footer Styling */
.footer-section {
    position: relative;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-section h3,
.footer-section h4 {
        position: relative;
    display: inline-block;
}

.footer-section h3::after,
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after,
.footer-section:hover h4::after {
        width: 100%;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }
    
    .footer .container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
}

/* Dashboard Footer Override */
.dashboard-body .footer {
    margin-top: 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Ensure footer is at bottom for short pages */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
} 

/* New Page Styles for Updated Dashboard */

/* Sensors Page */
.sensors-content {
    padding: 2rem 0;
}

/* Feature Extraction Page */
.feature-extraction-content {
    padding: 2rem 0;
}

/* Feature Selection Page */
.feature-selection-content {
    padding: 2rem 0;
}

/* AI Models Page */
.ai-models-content {
    padding: 2rem 0;
}

.feature-section {
    margin-bottom: 3rem;
}

.feature-section h3 {
    color: #22223b;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5b35b1;
    position: relative;
}

.feature-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #5b35b1;
}

.feature-card h4 {
    color: #22223b;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-card.full-width {
    grid-column: 1 / -1;
}

.python-code {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.python-code h5 {
    color: #5b35b1;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.python-code pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    position: relative;
}

/* Python Syntax Highlighting - IDLE Style */
.python-code .keyword {
    color: #569cd6;
    font-weight: bold;
}

.python-code .string {
    color: #ce9178;
}

.python-code .comment {
    color: #6a9955;
    font-style: italic;
}

.python-code .function {
    color: #dcdcaa;
}

.python-code .number {
    color: #b5cea8;
}

.python-code .operator {
    color: #d4d4d4;
}

.python-code .builtin {
    color: #4ec9b0;
}

.python-code .class-name {
    color: #4ec9b0;
}

.python-code .decorator {
    color: #c586c0;
}

.python-code .import {
    color: #9cdcfe;
}

.python-code code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

.python-code pre::-webkit-scrollbar {
    height: 8px;
}

.python-code pre::-webkit-scrollbar-track {
    background: #4a5568;
    border-radius: 4px;
}

.python-code pre::-webkit-scrollbar-thumb {
    background: #718096;
    border-radius: 4px;
}

.python-code pre::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.sensors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sensor-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.sensor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
}

.sensor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #5b35b1;
}

.sensor-header {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.sensor-header h3 {
    color: #22223b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.sensor-model {
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(91, 53, 177, 0.3);
}

.sensor-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sensor-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.sensor-id {
    color: #5b35b1;
    font-weight: 600;
    font-size: 0.9rem;
    background: #f8f9ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    border: 1px solid #e0e7ff;
    display: inline-block;
}

/* MKB0805 and Max30102 Pages */
.mkb0805-content,
.max30102-content {
    padding: 2rem 0;
}

/* MKB0805 Specific Styles */
.data-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff, #e0e7ff);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    display: block;
    color: #5b35b1;
    font-size: 1.8rem;
    font-weight: 700;
}

.table-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.table-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9ff;
}

.table-header h3 {
    color: #22223b;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 1200px; /* Ensure minimum width for all columns */
}

.table-container {
    overflow-x: auto; /* Add horizontal scroll for wide tables */
    border-radius: 15px;
}

.data-table th {
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f8f9ff;
    vertical-align: middle;
}

.data-table tr:hover {
    background: #f8f9ff;
}

.date-cell {
    min-width: 120px;
}

.date-info {
    display: flex;
    flex-direction: column;
}

.date-info .date {
    color: #22223b;
    font-weight: 600;
    font-size: 0.9rem;
}

.date-info .time {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.systolic-cell,
.diastolic-cell,
.hr-cell {
    text-align: center;
}

.systolic-cell .value,
.diastolic-cell .value,
.hr-cell .value {
    display: block;
    color: #22223b;
    font-weight: 700;
    font-size: 1.1rem;
}

.systolic-cell .unit,
.diastolic-cell .unit,
.hr-cell .unit {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.status-cell {
    text-align: center;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.normal {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-badge.high {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.low {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.actions-cell {
    text-align: center;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.action-btn.view {
    background: #e0e7ff;
    color: #3730a3;
}

.action-btn.view:hover {
    background: #c7d2fe;
}

.action-btn.edit {
    background: #fef3c7;
    color: #92400e;
}

.action-btn.edit:hover {
    background: #fde68a;
}

.action-btn.delete {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn.delete:hover {
    background: #fecaca;
}

/* GPT ve Gemini Buton Stilleri */
.btn-gpt,
.btn-gemini {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-gpt {
    background: linear-gradient(135deg, #10a37f, #0ea47f);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 163, 127, 0.3);
}

.btn-gpt:hover {
    background: linear-gradient(135deg, #0ea47f, #0d9488);
    box-shadow: 0 4px 12px rgba(16, 163, 127, 0.4);
    transform: translateY(-2px);
}

.btn-gemini {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-gemini:hover {
    background: linear-gradient(135deg, #34a853, #2e7d32);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    transform: translateY(-2px);
}

/* JSON Info Section Styles */
.json-info-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.json-info-section h3 {
    color: #22223b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.json-info-section p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.json-display {
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
}

.json-title {
    font-weight: 600;
    font-size: 1rem;
}

.copy-json-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-json-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.json-content {
    padding: 1.5rem;
    margin: 0;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.json-details {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.json-details h4 {
    color: #22223b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.json-details ul {
    margin: 0;
    padding-left: 1.5rem;
}

.json-details li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.json-details strong {
    color: #5b35b1;
    font-weight: 600;
}

/* Technical Details Section Styles */
.technical-details-section {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.technical-details-section h3 {
    color: #22223b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.technical-details-section p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.sensor-tech-card {
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
    margin-bottom: 2rem;
    overflow: hidden;
}

.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
}

.tech-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-content {
    padding: 1.5rem;
}

.tech-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.byte-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.byte-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    text-align: center;
}

.byte-number {
    display: block;
    color: #5b35b1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.byte-value {
    display: block;
    background: #f0f0f0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.byte-desc {
    display: block;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.parameter-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.param-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    display: flex;
    flex-direction: column;
}

.param-name {
    color: #5b35b1;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.param-desc {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.json-example {
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.json-example h5 {
    color: #22223b;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.json-code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-x: auto;
    margin: 0;
}

.differences-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff, #e0e7ff);
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.differences-section h4 {
    color: #22223b;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.diff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.diff-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e0e7ff;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.diff-card h5 {
    color: #5b35b1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.diff-card p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Analysis Table Specific Styles */
.analysis-id {
    background: #f0f0f0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
}

.sdnn-cell,
.rmssd-cell,
.pnn50-cell,
.spo2-cell {
    text-align: center;
}

.sdnn-cell .value,
.rmssd-cell .value,
.pnn50-cell .value,
.spo2-cell .value {
    display: block;
    color: #22223b;
    font-weight: 700;
    font-size: 1.1rem;
}

.sdnn-cell .unit,
.rmssd-cell .unit,
.pnn50-cell .unit,
.spo2-cell .unit {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.risk-cell {
    text-align: center;
}

.risk-value {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}

.class-cell {
    text-align: center;
}

.class-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #a7f3d0;
    text-transform: uppercase;
}

/* Additional Analysis Table Cell Styles */
.poincare-sd1-cell,
.poincare-sd2-cell,
.entropi-cell,
.sample-entropy-cell,
.psd-vlf-cell,
.psd-lf-cell,
.psd-hf-cell,
.lf-hf-ratio-cell,
.sistolik-cell,
.diyastolik-cell,
.sinyal-kalite-cell {
    text-align: center;
}

.poincare-sd1-cell .value,
.poincare-sd2-cell .value,
.entropi-cell .value,
.sample-entropy-cell .value,
.psd-vlf-cell .value,
.psd-lf-cell .value,
.psd-hf-cell .value,
.lf-hf-ratio-cell .value,
.sistolik-cell .value,
.diyastolik-cell .value,
.sinyal-kalite-cell .value {
    display: block;
    color: #22223b;
    font-weight: 700;
    font-size: 1.1rem;
}

.poincare-sd1-cell .unit,
.poincare-sd2-cell .unit,
.psd-vlf-cell .unit,
.psd-lf-cell .unit,
.psd-hf-cell .unit,
.sistolik-cell .unit,
.diyastolik-cell .unit {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.artefakt-cell {
    text-align: center;
}

.artefakt-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.artefakt-badge.yes {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.artefakt-badge.no {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Load More Section Styles */
.load-more-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e0e7ff;
}

.load-more-section .btn {
    margin-bottom: 1rem;
}

.load-more-info {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* AI Analysis Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
}

.modal-body h4 {
    color: #5b35b1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.modal-body h5 {
    color: #7c3aed;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.modal-body p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5b35b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
}

.loading-spinner p {
    margin-top: 1rem;
    color: #666;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.page-intro h2 {
    color: #22223b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-intro p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Analyses Page */
.analyses-content {
    padding: 2rem 0;
}

.analyses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.analysis-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #5b35b1;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.analysis-header h3 {
    color: #22223b;
    margin: 0;
    font-size: 1.2rem;
}

.analysis-date {
    color: #666;
    font-size: 0.9rem;
}

.analysis-content {
    margin-bottom: 1.5rem;
}

.analysis-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.analysis-row .label {
    color: #666;
    font-weight: 500;
}

.analysis-row .value {
    color: #22223b;
    font-weight: 600;
}

.analysis-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.class-label {
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* AI Comments Page */
.ai-comments-content {
    padding: 2rem 0;
}

.ai-comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ai-comment-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.ai-comment-card.gemini {
    border-left: 4px solid #4285f4;
}

.ai-comment-card.chatgpt {
    border-left: 4px solid #10a37f;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.comment-header h3 {
    color: #22223b;
    margin: 0;
    font-size: 1.2rem;
}

.comment-date {
    color: #666;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 1.5rem;
}

.prompt-section,
.response-section {
    margin-bottom: 1rem;
}

.prompt-section h4,
.response-section h4 {
    color: #22223b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.prompt-section p,
.response-section p {
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.ai-type {
    background: linear-gradient(135deg, #5b35b1, #7c3aed);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status Badge Updates */
.status-badge.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .sensors-grid,
    .analyses-grid,
    .ai-comments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .page-intro h2 {
        font-size: 2rem;
    }
    
    .analysis-header,
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .analysis-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .sensor-card,
    .analysis-card,
    .ai-comment-card {
        padding: 1rem;
    }
    
    .page-intro h2 {
        font-size: 1.8rem;
    }
    
    .page-intro p {
        font-size: 1rem;
    }
} 