/* ThemePRO Client Portal Mobile Layout (PWA) Stylesheet */

:root {
    /* Fonts Definition */
    --tp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tp-font-heading: 'Montserrat', sans-serif;

    /* Light Theme (Default) Variables */
    --tp-bg-main: #ffffff;
    --tp-bg-card: #ffffff;
    --tp-border-card: rgba(0, 0, 0, 0.05);
    --tp-text-primary: #0f172a;
    --tp-text-secondary: #64748b;
    --tp-header-bg: #ffffff;
    --tp-nav-bg: #ffffff;
    --tp-nav-active: #3b82f6;
    --tp-announce-from: #0b1329;
    --tp-announce-to: #1e3a8a;
    --tp-nav-inactive: #94a3b8;
    --tp-search-bg: #f1f5f9;
    --tp-search-border: rgba(0, 0, 0, 0.04);
}

/* Dark Theme Variables */
html[data-theme-mode="dark"] {
    --tp-bg-main: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                  radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
                  linear-gradient(135deg, #0f121a 0%, #151922 100%);
    --tp-bg-card: rgba(255, 255, 255, 0.04);
    --tp-border-card: rgba(255, 255, 255, 0.08);
    --tp-text-primary: #ffffff;
    --tp-text-secondary: #dde4ec; /* light grey, near white — legible on the dark ground */
    --tp-header-bg: rgba(21, 25, 34, 0.85);
    --tp-nav-bg: rgba(21, 25, 34, 0.9);
    --tp-nav-active: #3b82f6;
    --tp-announce-from: #0b1329;
    --tp-announce-to: #1e3a8a;
    --tp-nav-inactive: #9fadbd;   /* lifted too, but still clearly quieter than the active item */
    --tp-search-bg: rgba(255, 255, 255, 0.06);
    --tp-search-border: rgba(255, 255, 255, 0.1);
}

/* Base Body Styles */
body.customers {
    background: var(--tp-bg-main) !important;
    color: var(--tp-text-primary) !important;
    font-family: var(--tp-font-body) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

/* PWA Widescreen Lock (max-width 480px on mobile simulation, fluid on tablet/desktop) */
.tp-mobile-shell {
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Top Mobile Header */
.tp-mobile-header {
    height: calc(88px + env(safe-area-inset-top));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(24px + env(safe-area-inset-top)) 20px 0 20px;
    background: var(--tp-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none !important; /* Unified header with page body - no separation line */
    box-shadow: none !important;
    transition: background 0.3s, border 0.3s;
}

.tp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-header-left .tp-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.tp-header-left .tp-back-btn {
    color: var(--tp-text-primary);
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.tp-header-title {
    font-family: var(--tp-font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--tp-text-primary);
    margin: 0;
}

.tp-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-header-actions a,
.tp-header-actions button {
    color: var(--tp-text-primary);
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Bottom Tab Navigation Bar */
.tp-bottom-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f172a !important; /* Dark navy bar background as in mockup */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: none !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom);
    transition: background 0.3s;
}

.tp-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    color: #94a3b8; /* Muted inactive icon/text */
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
}

.tp-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.tp-nav-item.active {
    color: #ffffff !important; /* Active link text/icon is pure white */
}

/* FAB Chat Button (Atendimento IA) */
.tp-nav-fab-wrap {
    width: 20%;
    display: flex;
    justify-content: center;
    position: relative;
}

.tp-nav-fab {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #0066ff; /* Vibrant royal blue circle — no !important: Theme Style > PWA overrides it */
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -36px;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.2s;
    border: 3px solid #0f172a !important; /* Solid navy border matching the bar background */
}

.tp-nav-fab:hover {
    transform: scale(1.05);
}

.tp-nav-fab i {
    font-size: 26px;
}

/* Master Wrapper & Content Offset */
#wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    min-height: calc(100vh - 132px) !important; /* Header (64) + Nav (68) */
}

#content {
    padding: calc(108px + env(safe-area-inset-top)) 20px calc(88px + env(safe-area-inset-bottom)) 20px !important; /* Safe offsets for scrolling */
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide native navigation and wrapper elements */
#header, .navbar, .customer-top-submenu, footer, .copyright-footer {
    display: none !important;
}

/* Styled Search Input */
.tp-search-container {
    margin-bottom: 24px;
    position: relative;
    width: 100%;
}

.tp-search-container input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    background: var(--tp-search-bg) !important;
    border: 1px solid var(--tp-search-border) !important;
    color: var(--tp-text-primary) !important;
    padding: 0 16px 0 44px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
}

.tp-search-container input:focus {
    outline: none;
    border-color: var(--tp-nav-active) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tp-search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tp-text-secondary);
    font-size: 20px;
}

/* Abstract Announcement Card (Clean Deep Blue) */
.tp-announcement-card {
    width: 100%;
    height: 120px; /* Half height, perfect rectangle */
    background: linear-gradient(135deg, var(--tp-announce-from) 0%, var(--tp-announce-to) 100%);
    /* Reads variables so Theme Style > PWA can repaint it; no !important for the same reason */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 16px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-announcement-glow-1 {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.22);
    filter: blur(40px);
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.tp-announcement-glow-2 {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.18);
    filter: blur(35px);
    bottom: -30px;
    right: -30px;
    pointer-events: none;
}

.tp-announcement-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tp-announcement-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #3b82f6; /* Accent blue */
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tp-announcement-title {
    font-family: var(--tp-font-heading);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.tp-announcement-desc {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maximum 2 lines to fit height */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 34px;
}

/* Grid of Actions */
.tp-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
    margin-bottom: 28px;
    width: 100%;
}

.tp-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: transform 0.2s;
}

.tp-action-button:active {
    transform: scale(0.95);
}

.tp-action-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #111827; /* Dark navy fill in light mode */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    color: #ffffff; /* White icon inside */
    font-size: 22px;
    transition: transform 0.2s, background-color 0.2s;
}

html[data-theme-mode="dark"] .tp-action-icon-circle {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.tp-action-button:hover .tp-action-icon-circle {
    background: #2563eb; /* Royal blue hover */
    transform: scale(1.05);
}

.tp-action-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #0f172a; /* Muted primary text */
}

html[data-theme-mode="dark"] .tp-action-label {
    color: var(--tp-text-primary);
}

/* Sections Styling */
.tp-section-title {
    font-family: var(--tp-font-heading);
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 16px 0;
}

html[data-theme-mode="dark"] .tp-section-title {
    color: #ffffff;
}

/* Projects Horizontal Slider */
.tp-projects-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-bottom: 28px;
    scrollbar-width: none; /* Hide scrollbars */
}

.tp-projects-slider::-webkit-scrollbar {
    display: none;
}

.tp-project-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: #f1f5f9; /* Light card background in light mode */
    border-radius: 14px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: transform 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

html[data-theme-mode="dark"] .tp-project-card {
    background: rgba(255, 255, 255, 0.04);
}

.tp-project-card:hover {
    transform: translateY(-2px);
    background: #e2e8f0;
}

html[data-theme-mode="dark"] .tp-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.tp-project-num-box {
    width: 44px;
    height: 44px;
    background: #e2e8f0; /* Darker gray left block */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
}

html[data-theme-mode="dark"] .tp-project-num-box {
    background: rgba(255, 255, 255, 0.08);
    color: #c6cfdb;
}

.tp-project-card-right {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

.tp-project-text-group {
    display: flex;
    flex-direction: column;
}

.tp-project-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

html[data-theme-mode="dark"] .tp-project-card-title {
    color: #ffffff;
}

.tp-project-card-status {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.tp-project-card-arrow {
    font-size: 16px;
    color: #0f172a;
    display: flex;
    align-items: center;
}

html[data-theme-mode="dark"] .tp-project-card-arrow {
    color: #ffffff;
}

/* Highlighted Products */
.tp-products-section {
    margin-bottom: 28px;
    width: 100%;
}

.tp-product-card {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    border-bottom: 1px solid var(--tp-border-card);
}

.tp-product-card:last-child {
    border-bottom: none;
}

.tp-product-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-product-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

/* Catalogue rows show an icon rather than a photo: Perfex items carry no
   image, and the theme used to hard-code one product picture for every row. */
.tp-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tp-search-bg);
    color: var(--tp-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex: 0 0 auto;
}

/* Shown when a list has nothing in it, instead of sample data. */
.tp-empty-state {
    color: var(--tp-text-secondary);
    font-size: 13px;
    margin: 4px 0 8px;
}

.tp-product-info {
    display: flex;
    flex-direction: column;
}

.tp-product-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin: 0;
}

html[data-theme-mode="dark"] .tp-product-title {
    color: #ffffff;
}

.tp-product-brand {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.tp-product-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tp-product-price {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

html[data-theme-mode="dark"] .tp-product-price {
    color: #ffffff;
}

.tp-product-order-btn {
    font-size: 11px;
    font-weight: 700;
    color: #2563eb; /* Royal Blue — no !important: Theme Style > PWA overrides it */
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.tp-product-order-btn:hover {
    opacity: 0.8;
}

/* Smooth glassmorphic profile cards (Meu Perfil) */
.tp-profile-group {
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border-card);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    width: 100%;
}

.tp-profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tp-border-card);
    text-decoration: none !important;
    color: var(--tp-text-primary) !important;
    transition: background 0.2s;
}

.tp-profile-item:last-child {
    border-bottom: none;
}

.tp-profile-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.tp-profile-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-profile-item-left i {
    font-size: 20px;
    color: var(--tp-text-secondary);
}

.tp-profile-item-label {
    font-size: 14px;
    font-weight: 500;
}

.tp-profile-item-value {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 500;
}

/* Vertical Listing Layout (Minhas Faturas) */
.tp-tabs-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--tp-border-card);
    padding-bottom: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.tp-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.tp-tab-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--tp-text-secondary);
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.2s;
}

.tp-tab-link.active {
    color: var(--tp-nav-active);
}

.tp-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tp-nav-active);
    border-radius: 3px;
}

.tp-list-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.tp-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--tp-border-card);
    padding-bottom: 16px;
    width: 100%;
}

.tp-list-item:last-child {
    border-bottom: none;
}

.tp-list-item-left {
    display: flex;
    flex-direction: column;
}

.tp-list-item-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--tp-text-primary);
}

.tp-list-item-subtitle {
    font-size: 11px;
    color: var(--tp-text-secondary);
    margin-top: 4px;
}

.tp-list-item-link {
    font-size: 12px;
    color: #3b82f6 !important;
    text-decoration: none !important;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tp-list-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tp-list-item-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--tp-text-primary);
    text-align: right;
}

.tp-status-pill {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    min-width: 72px;
}

.tp-status-pill.unpaid {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}

.tp-status-pill.overdue {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
}

.tp-status-pill.paid {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
}

/* Additional Status Pills */
.tp-status-pill.draft {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #94a3b8 !important;
}
.tp-status-pill.sent {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}
.tp-status-pill.declined {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
}
.tp-status-pill.accepted {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
}
.tp-status-pill.expired {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #fbbf24 !important;
}

/* Profile Avatar Layout */
.tp-profile-header-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 12px 20px;
    margin-bottom: 8px;
}
.tp-profile-avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 16px;
}
.tp-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
html[data-theme-mode="dark"] .tp-profile-avatar {
    border-color: rgba(255, 255, 255, 0.1);
}
.tp-profile-avatar-edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0066ff;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    cursor: pointer;
}
html[data-theme-mode="dark"] .tp-profile-avatar-edit-badge {
    border-color: #151922;
}
.tp-profile-name {
    font-family: var(--tp-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--tp-text-primary);
    margin: 0 0 6px 0;
    text-align: center;
}
.tp-profile-meta {
    font-size: 13px;
    color: var(--tp-text-secondary);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Language Bottom Sheet Drawer */
.tp-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tp-bottom-sheet-overlay.active {
    display: block;
    opacity: 1;
}
.tp-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tp-bg-main);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    z-index: 1060;
    max-height: 70%;
    overflow-y: auto;
    padding: 24px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
}
.tp-bottom-sheet.active {
    transform: translateY(0);
}
.tp-bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.tp-bottom-sheet-title {
    font-family: var(--tp-font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--tp-text-primary);
    margin: 0;
}
.tp-bottom-sheet-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--tp-text-secondary);
    cursor: pointer;
}
.tp-bottom-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tp-bottom-sheet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border-card);
    border-radius: 12px;
    text-decoration: none !important;
    color: var(--tp-text-primary) !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}
.tp-bottom-sheet-item.active {
    border-color: var(--tp-nav-active);
    background: rgba(59, 130, 246, 0.05);
}

/* Edit View Layout */
.tp-profile-edit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tp-profile-edit-header .tp-back-btn {
    font-size: 24px;
    color: var(--tp-text-primary);
    text-decoration: none;
}
.tp-profile-edit-header h4 {
    margin: 0;
    font-size: 18px;
    font-family: var(--tp-font-heading);
    font-weight: 700;
    color: var(--tp-text-primary);
}
.tp-edit-form-container .panel_s {
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border-card);
    border-radius: 16px;
    box-shadow: none;
    margin-bottom: 24px;
    overflow: hidden;
}
.tp-edit-form-container .panel-body {
    padding: 20px;
}
.tp-edit-form-container .form-group {
    margin-bottom: 16px;
}
.tp-edit-form-container label {
    font-size: 13px;
    font-weight: 500;
    color: var(--tp-text-secondary);
    margin-bottom: 6px;
    display: block;
}
.tp-edit-form-container .form-control {
    height: 44px;
    border-radius: 10px;
    background: var(--tp-search-bg) !important;
    border: 1px solid var(--tp-search-border) !important;
    color: var(--tp-text-primary) !important;
    box-shadow: none;
}
.tp-edit-form-container .form-control:focus {
    border-color: var(--tp-nav-active) !important;
}
.tp-edit-form-container .btn-primary {
    background: #0066ff !important;
    border-color: #0066ff !important;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* Authentication Pages Layout & Cards */
body.tp-auth-page {
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
                linear-gradient(135deg, #0f121a 0%, #151922 100%) !important;
    color: #ffffff !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

body.tp-auth-page #wrapper {
    min-height: 100vh !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

body.tp-auth-page #content {
    padding: 24px 20px !important;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.tp-auth-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 36px 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Center Logo inside Auth Card */
.tp-auth-card .text-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 24px !important;
}

.tp-auth-card .text-center a {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
}

.tp-auth-card .text-center img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    height: auto !important;
    float: none !important;
}

.tp-auth-card .form-group {
    margin-bottom: 20px;
}

.tp-auth-card label {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8 !important;
    margin-bottom: 6px;
    display: block;
}

.tp-auth-card .form-control,
.tp-auth-card select {
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 0 16px;
    font-size: 14px;
    box-shadow: none !important;
    transition: all 0.2s ease;
    width: 100%;
}

.tp-auth-card select option {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.tp-auth-card .form-control:focus {
    border-color: #8b5cf6 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Fix Bootstrap Select container height & double borders */
.tp-auth-card .bootstrap-select.form-control {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: 46px !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.tp-auth-card .bootstrap-select .dropdown-toggle {
    height: 46px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tp-auth-card .bootstrap-select .dropdown-toggle:focus,
.tp-auth-card .bootstrap-select .dropdown-toggle:active,
.tp-auth-card .bootstrap-select.open .dropdown-toggle {
    border-color: #8b5cf6 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Deep Blue Dropdown Menu Styles starting right below the field */
.tp-auth-card .bootstrap-select .dropdown-menu {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    margin-top: 4px !important;
    padding: 6px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important;
}

.tp-auth-card .bootstrap-select .dropdown-menu li {
    background: transparent !important;
}

.tp-auth-card .bootstrap-select .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    background: transparent !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
}

.tp-auth-card .bootstrap-select .dropdown-menu li a:hover,
.tp-auth-card .bootstrap-select .dropdown-menu li.active a,
.tp-auth-card .bootstrap-select .dropdown-menu li.selected a {
    background: #2563eb !important;
    color: #ffffff !important;
}

.btn-tp-auth {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%) !important;
    border: none !important;
    color: #ffffff !important;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    transition: transform 0.2s, opacity 0.2s;
    width: 100%;
    display: block;
}

.btn-tp-auth:active {
    transform: scale(0.98);
}

.btn-tp-auth-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    height: 46px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    width: 100%;
}

.btn-tp-auth-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Button Spacing */
.tp-auth-card .btn-tp-auth + .btn-tp-auth-secondary,
.tp-auth-card .btn-tp-auth-secondary {
    margin-top: 20px !important;
}

/* Auth views helper styles */
.tp-auth-card .alert {
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    border: none;
}
.tp-auth-card .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}
.tp-auth-card .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.tp-auth-card .honey-element {
    display: none !important;
}

/* Sub-navigation tabs for filtering lists */
.tp-sub-tabs-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 24px;
    width: 100%;
}
.tp-sub-tabs-scroll::-webkit-scrollbar {
    display: none;
}
.tp-sub-tab-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text-secondary);
    background: rgba(148, 163, 184, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s;
}
.tp-sub-tab-link.active {
    color: #ffffff;
    background: var(--tp-nav-active);
}

/* Search Bar Layout for lists */
.tp-search-bar-container {
    margin-bottom: 24px;
    width: 100%;
}
.tp-search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--tp-bg-card);
    border: 1px solid var(--tp-border-card);
    border-radius: 10px;
    height: 44px;
    padding: 0 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tp-search-bar-wrapper:focus-within {
    border-color: var(--tp-nav-active);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.tp-search-icon {
    font-size: 20px;
    color: var(--tp-text-secondary);
    margin-right: 12px;
    flex-shrink: 0;
}
.tp-search-input {
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100%;
    height: 100%;
    outline: none !important;
    font-family: var(--tp-font-body);
    font-size: 14px;
    color: var(--tp-text-primary);
    padding: 0;
}
.tp-search-input::placeholder {
    color: var(--tp-text-secondary);
    opacity: 0.8;
}

/* Profile menu completeness status indicators */
.tp-profile-item-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tp-status-indicator {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.tp-status-indicator.complete {
    background: #22c55e !important;
    box-shadow: 0 2px 5px rgba(34, 197, 94, 0.2);
}
.tp-status-indicator.complete i {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
}
.tp-status-indicator.incomplete {
    background: #ef4444 !important;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.2);
}
.tp-status-indicator.incomplete i {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   FullCalendar Premium Redesign
   ========================================================================== */

/* Calendar container styling */
#calendar {
    font-family: var(--tp-font-body);
    background: var(--tp-bg-card) !important;
    border: 1px solid var(--tp-border-card) !important;
    border-radius: 12px !important;
    padding: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

html[data-theme-mode="dark"] #calendar {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Header Toolbar styling */
.fc-header-toolbar {
    margin-bottom: 16px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.fc-toolbar-title {
    font-family: var(--tp-font-heading) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    color: var(--tp-text-primary) !important;
    letter-spacing: -0.3px;
}

/* Toolbar Buttons styling */
.fc .fc-button-primary {
    background-color: var(--tp-search-bg) !important;
    border: 1px solid var(--tp-search-border) !important;
    color: var(--tp-text-primary) !important;
    font-family: var(--tp-font-body) !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: capitalize !important;
}

.fc .fc-button-primary:hover {
    background-color: var(--tp-nav-active) !important;
    border-color: var(--tp-nav-active) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.fc .fc-button-primary:active {
    transform: translateY(0);
}

.fc .fc-button-primary:disabled {
    opacity: 0.5 !important;
    background-color: var(--tp-search-bg) !important;
    border-color: var(--tp-search-border) !important;
    color: var(--tp-text-secondary) !important;
    transform: none !important;
}

/* Highlight active view button */
.fc .fc-button-active {
    background-color: var(--tp-nav-active) !important;
    border-color: var(--tp-nav-active) !important;
    color: #ffffff !important;
}

/* Separation gap between buttons inside a group */
.fc-button-group {
    display: flex !important;
    gap: 5px !important;
}

.fc-button-group > .fc-button {
    border-radius: 8px !important;
    margin: 0 !important;
}

/* Grid & Border styling */
.fc-theme-standard td, 
.fc-theme-standard th {
    border-color: var(--tp-border-card) !important;
}

.fc-theme-standard .fc-scrollgrid {
    border: none !important;
    border-radius: 10px;
    overflow: hidden;
}

/* Header cells (Days of week) */
.fc-col-header-cell {
    background: transparent !important;
    padding: 8px 0 !important;
}

.fc-col-header-cell-cushion {
    font-family: var(--tp-font-heading) !important;
    font-weight: 700 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--tp-text-secondary) !important;
    text-decoration: none !important;
}

/* Calendar Days */
.fc-daygrid-day {
    background-color: transparent !important;
    transition: background-color 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: rgba(99, 102, 241, 0.02) !important;
}

html[data-theme-mode="dark"] .fc-daygrid-day:hover {
    background-color: rgba(255, 255, 255, 0.01) !important;
}

.fc-daygrid-day-number {
    font-family: var(--tp-font-body) !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    color: var(--tp-text-secondary) !important;
    padding: 4px 6px !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
    color: var(--tp-text-primary) !important;
}

/* Today highlight styling */
.fc-daygrid-day.fc-day-today {
    background-color: rgba(59, 130, 246, 0.07) !important;
    position: relative;
}

.fc-daygrid-day.fc-day-today::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tp-nav-active);
    z-index: 5;
}

.fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--tp-nav-active) !important;
    font-weight: 700 !important;
}

/* Events premium styling */
.fc-event {
    border: none !important;
    border-radius: 5px !important;
    padding: 2px 6px !important;
    font-family: var(--tp-font-body) !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    margin: 1px 2px !important;
}

.fc-event:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08) !important;
    filter: brightness(1.05);
}

/* Default event color style if not overridden by dynamic settings */
.fc-daygrid-dot-event {
    background-color: transparent !important;
    color: var(--tp-text-primary) !important;
}

.fc-daygrid-block-event {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

html[data-theme-mode="dark"] .fc-daygrid-block-event {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(29, 78, 216, 0.8) 100%) !important;
}

/* Event text spacing and colors */
.fc-event-title {
    font-weight: 600 !important;
    padding-left: 2px;
}

.fc-event-time {
    font-weight: 500 !important;
    opacity: 0.9;
}

/* More link (+3 more) styling */
.fc-more-link {
    font-family: var(--tp-font-body) !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    color: var(--tp-nav-active) !important;
    text-decoration: none !important;
    padding: 1px 4px !important;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fc-more-link:hover {
    background-color: rgba(59, 130, 246, 0.08) !important;
}

/* Time Grid Views (week, day) styling */
.fc-timegrid-slot {
    height: 36px !important;
}

.fc-timegrid-slot-label-cushion {
    font-family: var(--tp-font-body) !important;
    font-size: 10px !important;
    color: var(--tp-text-secondary) !important;
}

.fc-timegrid-axis-cushion {
    font-family: var(--tp-font-body) !important;
    font-size: 10px !important;
    color: var(--tp-text-secondary) !important;
}

/* List view styling */
.fc-list {
    border: none !important;
}

.fc-list-day-cushion {
    background-color: var(--tp-search-bg) !important;
    padding: 6px 12px !important;
}

.fc-list-day-text, 
.fc-list-day-side-text {
    font-family: var(--tp-font-heading) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    color: var(--tp-text-primary) !important;
    text-decoration: none !important;
}

.fc-list-event-time {
    color: var(--tp-text-secondary) !important;
    font-size: 11px !important;
}

.fc-list-event-title {
    font-weight: 600 !important;
    color: var(--tp-text-primary) !important;
    font-size: 11px !important;
}

/* Custom scrollbar in scrollgrid */
.fc-scroller::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: transparent;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.fc-scroller::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Mobile responsive fixes */
/* Mobile responsive fixes */
@media (max-width: 576px) {
    #calendar {
        padding: 8px;
        border-radius: 10px !important;
    }
    .fc-header-toolbar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }
    .fc-header-toolbar > .fc-toolbar-chunk {
        display: flex !important;
        align-items: center !important;
    }
    .fc-header-toolbar > :nth-child(1) {
        justify-content: flex-start !important;
        flex-shrink: 0 !important;
    }
    .fc-header-toolbar > :nth-child(2) {
        justify-content: center !important;
        flex-grow: 1 !important;
        text-align: center !important;
        min-width: 0 !important;
    }
    .fc-header-toolbar > :nth-child(3) {
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
    }
    .fc-toolbar-title {
        font-size: 11px !important;
        text-align: center !important;
        margin: 0 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 4px !important;
    }
    .fc .fc-button-primary {
        padding: 4px 6px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }
    .fc-button-group > .fc-button {
        border-radius: 6px !important;
    }
}

