html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body.cs-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fb;
    margin-bottom: 0;
}

.cs-main {
    flex: 1 0 auto;
}

.cs-footer {
    background-color: #ffffff;
}

.cs-topbar .navbar-brand {
    letter-spacing: 0.5px;
}

.cs-topbar .nav-link.active {
    color: #ffffff !important;
    border-bottom: 2px solid #0dcaf0;
}

.cs-card {
    border-radius: 0.75rem;
    border: 1px solid #e6e9ef;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.15s ease-in-out;
}

.cs-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.cs-create-card {
    position: sticky;
    top: 1rem;
}

.cs-empty {
    background-color: #ffffff;
    border-style: dashed;
}

.cs-feed code,
.cs-events code {
    font-size: 0.75rem;
    color: #5d6c7c;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

.cs-loading {
    color: #5d6c7c;
    font-size: 0.875rem;
}

.cs-search-type {
    text-transform: capitalize;
    background-color: #eef6ff;
    color: #225b93;
    border: 1px solid #d0e4ff;
}

body.cs-landing {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.cs-landing-nav .navbar-brand {
    letter-spacing: 0.5px;
}

.cs-hero-landing {
    background: linear-gradient(90deg, #034ea2 0%, #031241 100%);
}

.cs-hero-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cs-features-landing {
    background-color: #f8f9fa;
}

.cs-stats-landing {
    background: linear-gradient(90deg, #034ea2 0%, #031241 100%);
}

.cs-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.cs-stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cs-landing-step .cs-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #034ea2;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.cs-cta-landing {
    background: linear-gradient(90deg, #f49753 0%, #fdcd15 100%);
}

.cs-landing-footer {
    background-color: #031241;
}

.cs-btn-iris {
    background-color: #034ea2;
    border-color: #034ea2;
}

.cs-btn-iris:hover,
.cs-btn-iris:focus {
    background-color: #023a7a;
    border-color: #023a7a;
}

.cs-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #0dcaf0;
    color: #031241;
    font-size: 0.75rem;
    font-weight: 700;
}

.cs-avatar-lg {
    width: 3rem;
    height: 3rem;
    font-size: 0.95rem;
}

.cs-match-score {
    background-color: #e8f7ef;
    color: #1f6b45;
    border: 1px solid #bfe8d0;
    font-size: 0.85rem;
}

.cs-match-progress {
    height: 0.4rem;
    background-color: #e9ecef;
}

.cs-match-progress .progress-bar {
    background-color: #198754;
}

.cs-match-label {
    background-color: #eef2f7;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.8rem;
}

.cs-ellipsis-icon {
    display: inline-block;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0.05em;
}

.cs-match-actions-toggle {
    min-width: 1.75rem;
    min-height: 1.75rem;
    border-radius: 0.375rem;
}

.cs-match-actions-toggle:hover,
.cs-match-actions-toggle:focus {
    background-color: #f1f5f9;
    color: #475569 !important;
}

.cs-event-cover {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: 12rem;
}

.cs-event-cover-preview-img {
    width: 100%;
    max-height: 14rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cs-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background-color: #f8fafc;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.cs-file-dropzone-active {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.cs-file-dropzone-content p {
    margin-bottom: 0.25rem;
}

.cs-post-image {
    max-height: 18rem;
    object-fit: cover;
    width: 100%;
}

.cs-post-image-preview {
    width: 100%;
    max-height: 14rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cs-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-messages-panels {
    min-height: 28rem;
}

.cs-messages-sidebar,
.cs-messages-thread {
    min-height: 28rem;
}

.cs-conversation-list {
    max-height: 32rem;
    overflow-y: auto;
}

.cs-conversation-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e9ecef;
}

.cs-conversation-item:hover,
.cs-conversation-item.active {
    background-color: #f8f9fa;
}

.cs-message-thread-body {
    max-height: 24rem;
    overflow-y: auto;
    background: #f8fafc;
}

.cs-message-row {
    display: flex;
    margin-bottom: 0.75rem;
}

.cs-message-mine {
    justify-content: flex-end;
}

.cs-message-theirs {
    justify-content: flex-start;
}

.cs-message-bubble {
    max-width: 75%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    background: #e9ecef;
}

.cs-message-mine .cs-message-bubble {
    background: #0d6efd;
    color: #fff;
}

.cs-message-mine .cs-message-time {
    color: rgba(255, 255, 255, 0.85);
}

.cs-message-time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.cs-comments-panel {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
}

.cs-comment-list {
    max-height: 16rem;
    overflow-y: auto;
}

.cs-post-actions .btn {
    min-width: 5.5rem;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}
