/* Modern Enterprise SaaS Styling for Bootstrap 3.3.7 */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0f172a;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
    padding-top: 70px;
    margin: 0;
}

/* Navbar Custom Styling */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-height: 70px;
    margin-bottom: 0;
}

.navbar-custom .navbar-brand {
    height: 70px;
    padding: 22px 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-brand i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 24px;
}

.navbar-custom .navbar-nav > li > a {
    padding-top: 25px;
    padding-bottom: 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li.active > a {
    color: var(--primary-color);
    background-color: transparent;
}

.navbar-btn-contact {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 6px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.navbar-btn-contact:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 400;
    line-height: 1.7;
}

.btn-cta-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    margin-right: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-cta-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-cta-secondary {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-cta-secondary:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: var(--secondary-color);
    text-decoration: none;
}

/* Dashboard Preview Graphic Card */
.dashboard-mockup {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-top: 20px;
}

.dashboard-header {
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dot-group span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.dashboard-body {
    padding: 20px;
}

.stat-card-mini {
    background: #f8fafc;
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.stat-card-mini .num {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-card-mini .label-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Feature Card Section */
.section-padding {
    padding: 80px 0;
}

.bg-light-section {
    background-color: var(--bg-light);
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.feature-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: #cbd5e1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: #eff6ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Pricing Card */
.pricing-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    padding: 40px 30px;
    box-shadow: var(--card-hover-shadow);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.pricing-unit {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

/* FAQ Accordion Styling */
.faq-panel {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 15px;
    box-shadow: none;
    overflow: hidden;
}

.faq-panel .panel-heading {
    background-color: #ffffff;
    padding: 18px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-panel .panel-heading:hover {
    background-color: #f8fafc;
}

.faq-panel .panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-panel .panel-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.faq-panel .panel-body {
    padding: 20px;
    color: var(--text-main);
    border-top: 1px solid #f1f5f9;
    background-color: #ffffff;
    line-height: 1.7;
}

/* Legal & Document Layout */
.doc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 15px 80px;
}

.doc-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 25px;
    margin-bottom: 35px;
}

.doc-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.doc-date {
    font-size: 14px;
    color: var(--text-muted);
}

.doc-section {
    margin-bottom: 35px;
}

.doc-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.doc-section p, .doc-section ul {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.8;
}

.doc-section ul {
    padding-left: 20px;
}

.doc-section li {
    margin-bottom: 8px;
}

/* Footer */
.footer-custom {
    background-color: var(--secondary-color);
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 14px;
}

.footer-custom h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-custom ul {
    list-style: none;
    padding-left: 0;
}

.footer-custom ul li {
    margin-bottom: 10px;
}

.footer-custom ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-custom ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    color: #64748b;
}

/* Page View Switching Logic */
.page-view {
    display: none;
}

.page-view.active {
    display: block;
}

/* Badge Tag */
.tag-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background-color: #e0f2fe;
    color: #0284c7;
    margin-bottom: 12px;
}

/* RWD Improvements */
@media (max-width: 767px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .navbar-custom .navbar-nav > li > a {
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .navbar-btn-contact {
        margin-top: 10px;
        margin-left: 15px;
        display: inline-block;
    }
}

/* Summary Stat Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card .stat-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}
.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-icon.icon-blue { background-color: #eff6ff; color: #2563eb; }
.stat-icon.icon-green { background-color: #f0fdf4; color: #16a34a; }
.stat-icon.icon-red { background-color: #fef2f2; color: #dc2626; }

/* Server Card Grid */
.server-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.server-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}
.server-card.offline {
    border-left: 4px solid #ef4444;
}
.server-card.online {
    border-left: 4px solid #22c55e;
}

.server-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.server-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}
.server-name i {
    color: #64748b;
    margin-right: 6px;
}

/* Status Pulsing Dot */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-badge.online {
    background-color: #dcfce7;
    color: #15803d;
}
.status-badge.offline {
    background-color: #fee2e2;
    color: #b91c1c;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
}
.status-badge.online .status-dot {
    background-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.status-badge.offline .status-dot {
    background-color: #ef4444;
}

.server-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.server-info-list li {
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
    display: flex;
    justify-content: space-between;
}
.server-info-list li span.label-title {
    color: #64748b;
}
.server-info-list li span.value-text {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    color: #0f172a;
}

.server-card-footer {
    background-color: #f8fafc;
    margin: 0 -20px -20px -20px;
    padding: 10px 20px;
    border-top: 1px solid #f1f5f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.refresh-btn-group .btn {
    border-radius: 6px;
}