@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Main Variables & Color Scheme (Inspired by Romer Dashboard Design) */
:root {
    --tms-bg: #050505;
    --tms-card: #0A0A0A;
    --tms-card-inner: #121212;
    --tms-border: #1A1A1A;
    --tms-border-light: rgba(255, 255, 255, 0.08);
    --tms-primary: #3B82F6;
    --tms-primary-glow: rgba(59, 130, 246, 0.15);
    --tms-text: #FFFFFF;
    --tms-text-muted: #8E8E93;
    --tms-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Quote Card Colors */
    --tms-quote-blue: #E3F2FD;
    --tms-quote-green: #C5FF41;
}

/* Base Reset & Typography */
.tms-page-template {
    background-color: var(--tms-bg);
    color: var(--tms-text);
    font-family: var(--tms-font);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.tms-page-template h1, 
.tms-page-template h2, 
.tms-page-template h3, 
.tms-page-template h4 {
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.tms-page-template a {
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Header & Navigation */
.tms-nav-container {
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tms-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.tms-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    position: relative;
}

.tms-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.tms-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.tms-nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.tms-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.tms-nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.tms-nav-collapse {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 48px;
}

.tms-logo {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    z-index: 1000;
}

.tms-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tms-menu a {
    color: var(--tms-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.tms-menu a:hover,
.tms-menu .active a {
    color: #FFFFFF;
}

.tms-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom Buttons matching the layout design */
.tms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.tms-page-template a.tms-btn-white,
.tms-page-template button.tms-btn-white,
.tms-btn-white {
    background-color: #FFFFFF;
    color: #000000 !important;
}

.tms-btn-white:hover {
    background-color: #E6E6E6;
}

.tms-page-template a.tms-btn-dark,
.tms-page-template button.tms-btn-dark,
.tms-btn-dark {
    background-color: #1A1A1A;
    color: #FFFFFF !important;
    border: 1px solid var(--tms-border);
}

.tms-btn-dark:hover {
    background-color: #262626;
}

.tms-page-template a.tms-btn-primary,
.tms-page-template button.tms-btn-primary,
.tms-btn-primary {
    background-color: #FFFFFF;
    color: #000000 !important;
    border: none;
}

.tms-btn-primary:hover {
    background-color: #E6E6E6;
}

.tms-page-template a.tms-btn-secondary,
.tms-page-template button.tms-btn-secondary,
.tms-btn-secondary {
    background-color: #1A1A1A;
    color: #FFFFFF !important;
    border: 1px solid var(--tms-border);
}

.tms-btn-secondary:hover {
    background-color: #262626;
}

.tms-btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Hero Section */
.tms-hero {
    padding: 80px 0 60px 0;
    text-align: center;
}

.tms-hero-title {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 16px;
    font-weight: 800;
}

.tms-hero-subtitle {
    font-size: 18px;
    color: var(--tms-text-muted);
    max-width: 600px;
    margin: 0 auto 32px auto;
    font-weight: 400;
    line-height: 1.4;
}

.tms-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Live Operational Loop Tag */
.tms-live-tag {
    font-size: 12px;
    color: var(--tms-text-muted);
    margin-top: 16px;
    display: block;
}

.tms-live-tag a {
    color: #FFFFFF;
    font-weight: 500;
}

/* Application Preview / Dashboard Mockup */
.tms-dashboard-preview {
    background-color: #0A0A0A;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 40px auto 80px auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 200px 1fr;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Dashboard Sidebar */
.tms-db-sidebar {
    background-color: #0F0F0F;
    border-right: 1px solid var(--tms-border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tms-db-logo {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    padding-left: 8px;
}

.tms-db-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tms-db-menu-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--tms-text-muted);
    font-size: 13px;
    font-weight: 500;
}

.tms-db-menu-item.active a,
.tms-db-menu-item a:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

/* Dashboard Content */
.tms-db-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tms-db-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dashboard Stats Grid */
.tms-db-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tms-db-stat-card {
    background-color: #121212;
    border: 1px solid var(--tms-border);
    border-radius: 6px;
    padding: 16px;
}

.tms-db-stat-label {
    font-size: 11px;
    color: var(--tms-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.tms-db-stat-value {
    font-size: 22px;
    font-weight: 700;
}

.tms-db-stat-trend {
    font-size: 11px;
    margin-top: 4px;
}

.tms-db-stat-trend.green { color: #34D399; }
.tms-db-stat-trend.yellow { color: #FBBF24; }

/* Dashboard Chart Area */
.tms-db-chart-container {
    background-color: #121212;
    border: 1px solid var(--tms-border);
    border-radius: 6px;
    padding: 20px;
    position: relative;
}

.tms-db-chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--tms-text-muted);
    margin-bottom: 16px;
}

.tms-db-chart-svg {
    width: 100%;
    height: 150px;
}

/* Grid Layout / Abstract Architecture Section */
.tms-architecture-section {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--tms-border);
}

.tms-section-subtitle {
    font-size: 32px;
    max-width: 600px;
    margin: 0 auto 48px auto;
    line-height: 1.15;
}

.tms-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tms-arch-card {
    background-color: #0A0A0A;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    aspect-ratio: 1.4;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Grid drawing background */
.tms-arch-grid-pattern {
    background-size: 16px 16px;
    background-image: linear-gradient(to right, #151515 1px, transparent 1px),
                      linear-gradient(to bottom, #151515 1px, transparent 1px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.8;
}

/* Testimonial Quote Blocks */
.tms-quotes-section {
    padding: 80px 0;
}

.tms-quotes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tms-quote-card {
    border-radius: 12px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.tms-quote-card.blue {
    background-color: var(--tms-quote-blue);
    color: #000000;
}

.tms-quote-card.green {
    background-color: var(--tms-quote-green);
    color: #000000;
}

.tms-quote-text {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.tms-quote-author {
    margin-top: 40px;
    font-size: 14px;
}

.tms-quote-author-name {
    font-weight: 700;
}

.tms-quote-author-role {
    opacity: 0.6;
}

/* Built for Clarity Section */
.tms-clarity-section {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--tms-border);
}

.tms-clarity-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 48px !important;
}

/* Footer styles */
.tms-footer {
    border-top: 1px solid var(--tms-border);
    padding: 64px 0 48px 0;
    background-color: #050505;
}

.tms-footer-grid {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.tms-footer-grid .tms-footer-col:nth-child(2),
.tms-footer-grid .tms-footer-col:nth-child(3) {
    justify-self: end;
}

.tms-footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.tms-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tms-footer-col ul a {
    color: var(--tms-text-muted);
    font-size: 13px;
}

.tms-footer-col ul a:hover {
    color: #FFFFFF;
}

.tms-footer-info {
    font-size: 13px;
    color: var(--tms-text-muted);
}

.tms-footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--tms-border);
    padding-top: 24px;
    font-size: 12px;
    color: var(--tms-text-muted);
}

/* Spaces List in Romer Design */
.tms-spaces-block-section {
    padding: 80px 0;
    border-top: 1px solid var(--tms-border);
}

/* Modal Popup Core Custom Styling */
.tms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.tms-modal-content {
    background-color: #0A0A0A;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    padding: 32px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #FFFFFF;
}

.tms-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 24px;
    cursor: pointer;
    color: var(--tms-text-muted);
}

.tms-modal-close:hover {
    color: #FFFFFF;
}

/* Fluent Form Custom Dark Theme (Romer-style) */
.tms-fluentform-custom input[type="text"],
.tms-fluentform-custom input[type="email"],
.tms-fluentform-custom input[type="date"],
.tms-fluentform-custom select,
.tms-fluentform-custom textarea {
    background-color: #121212 !important;
    border: 1px solid #222222 !important;
    border-radius: 4px !important;
    padding: 12px 14px !important;
    color: #FFFFFF !important;
}

.tms-fluentform-custom input:focus,
.tms-fluentform-custom select:focus,
.tms-fluentform-custom textarea:focus {
    border-color: #444444 !important;
}

/* Split Layout for Turn Signals Into Focus */
.tms-split-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    text-align: left;
    padding: 80px 0;
}

.tms-split-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tms-split-text h2 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
}

.tms-split-text p {
    color: var(--tms-text-muted);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.tms-split-visual {
    background-color: #0A0A0A;
    border: 1px solid var(--tms-border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tms-signal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tms-signal-row {
    background-color: #121212;
    border: 1px solid var(--tms-border);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.tms-signal-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tms-signal-icon {
    font-size: 16px;
}

.tms-signal-title {
    font-weight: 600;
    color: #FFFFFF;
}

.tms-signal-desc {
    color: var(--tms-text-muted);
    font-size: 12px;
}

.tms-signal-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tms-signal-badge.blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tms-signal-badge.green {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tms-signal-badge.yellow {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .tms-split-section {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .tms-split-text {
        text-align: left !important;
    }
    .tms-expert-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .tms-quotes-grid {
        grid-template-columns: 1fr;
    }
    .tms-arch-grid {
        grid-template-columns: 1fr;
    }
    .tms-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .tms-hero-title {
        font-size: 40px;
    }
}

/* Filter Controls Area */
.tms-expert-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    background-color: #0A0A0A;
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    padding: 16px 24px;
}

.tms-filter-search {
    flex-grow: 1;
}

.tms-filter-search input {
    width: 100%;
    background-color: #121212;
    border: 1px solid var(--tms-border);
    border-radius: 6px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    transition: var(--tms-transition);
}

.tms-filter-search input:focus {
    border-color: var(--tms-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.tms-filter-dropdowns {
    display: flex;
    gap: 12px;
}

.tms-filter-dropdowns select {
    background-color: #121212;
    border: 1px solid var(--tms-border);
    border-radius: 6px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--tms-transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238E8E93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.tms-filter-dropdowns select:focus {
    border-color: var(--tms-primary);
}

@media (max-width: 768px) {
    .tms-expert-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    .tms-filter-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

/* Expert Marketplace Layout */
.tms-expert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.tms-expert-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tms-border);
}

.tms-expert-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #FFFFFF;
}

.tms-expert-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 28px;
}

.tms-expert-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.tms-expert-meta-label {
    color: var(--tms-text-muted);
}

.tms-expert-meta-value {
    font-weight: 600;
    color: #FFFFFF;
}

.tms-expert-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.tms-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tms-badge-neutral {
    background-color: #121212;
    color: var(--tms-text-muted);
    border: 1px solid var(--tms-border);
}

.tms-badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tms-badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Expert Grid (2 columns on desktop) */
.tms-expert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
}

.tms-expert-card {
    background: var(--tms-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tms-border);
    border-radius: var(--tms-radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--tms-shadow);
    transition: var(--tms-transition);
}

.tms-expert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 40px -10px var(--tms-primary-glow), 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .tms-navbar {
        height: 64px;
        padding: 0;
        justify-content: space-between;
        flex-direction: row;
    }
    .tms-nav-toggle {
        display: flex;
    }
    .tms-nav-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        position: absolute;
        top: 64px;
        left: 0;
        background-color: #050505;
        border-bottom: 1px solid var(--tms-border);
        padding: 24px;
        gap: 24px;
        z-index: 999;
    }
    .tms-nav-collapse.active {
        display: flex;
    }
    .tms-menu {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    .tms-nav-right {
        display: flex;
        flex-direction: row;
        width: auto;
        align-items: center;
        gap: 8px;
    }
    .tms-nav-right .tms-btn {
        width: auto;
        padding: 8px 14px !important;
        font-size: 13px !important;
        margin: 0 !important;
    }
    .tms-hero-title {
        font-size: 32px !important;
        line-height: 1.2;
    }
    .tms-hero-subtitle {
        font-size: 15px !important;
    }
    .tms-hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: center;
        padding: 0 24px;
        box-sizing: border-box;
    }
    .tms-hero-ctas .tms-btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
        box-sizing: border-box;
    }
    .tms-dashboard-preview {
        grid-template-columns: 1fr !important;
    }
    .tms-db-sidebar {
        display: none !important;
    }
    .tms-db-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tms-db-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tms-db-header h3 {
        font-size: 16px !important;
    }
    .tms-footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 32px;
    }
    .tms-footer-grid .tms-footer-col:nth-child(2),
    .tms-footer-grid .tms-footer-col:nth-child(3) {
        justify-self: center;
        text-align: center;
    }
    .tms-footer-grid .tms-footer-col:nth-child(2) ul,
    .tms-footer-grid .tms-footer-col:nth-child(3) ul {
        align-items: center;
    }
    .tms-expert-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .tms-quote-card {
        padding: 32px 24px !important;
        min-height: auto !important;
        gap: 24px;
    }
    .tms-clarity-title {
        font-size: 32px !important;
    }
}
@media (max-width: 480px) {
    .tms-db-stats {
        grid-template-columns: 1fr !important;
    }
    .tms-expert-actions {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    .tms-expert-meta-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }
    .tms-expert-meta-value {
        text-align: left !important;
    }
    .tms-signal-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .tms-signal-badge {
        align-self: flex-start !important;
        margin-top: 4px;
    }
}

