/* <label placeholder aria-label */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #000000;
    --bg-sidebar: #121212;
    --bg-card: #080808;
    --bg-card-hover: #121212;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --accent: #3b82f6;
    /* Primary Blue */
    --accent-light: #bfdbfe;
    --success: #2ecc71;
    --success-bg: #e5f9ed;
    --success-text: #1b8a44;
    --warning: #f39c12;
    --warning-bg: #fef5e7;
    --warning-text: #b9770e;
    --danger: #e74c3c;
    --danger-bg: #fdedec;
    --danger-text: #a93226;
    --info: #3498db;
    --border: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customizado (Minimalista & Ajustado às Bordas Arredondadas) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 14px;
    margin-bottom: 14px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Layout Wrapper */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-main);
    padding: 12px 16px 16px 16px;
    gap: 8px;
}

/* App Top Bar (Sobre o background da aplicação) */
.app-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    padding: 0 4px;
    background: transparent;
    flex-shrink: 0;
}

.top-bar-left {
    width: 260px;
    display: flex;
    align-items: center;
    transition: width 0.2s ease;
    flex-shrink: 0;
}

.toggle-btn-container {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html.sidebar-is-collapsed .top-bar-left {
    width: 70px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* Admin Layout (Abaixo do Top Bar: Sidebar + Container de Conteúdo) */
.admin-layout {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 12px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: transparent;
    display: flex;
    flex-direction: column;
    border-right: none;
    transition: width 0.2s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar .logo {
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    box-sizing: border-box;
    position: relative;
}

.logo-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn i {
    transition: transform 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

html.sidebar-is-collapsed .top-bar-left .logo-brand,
.sidebar.collapsed .logo-brand {
    display: none !important;
}

html.sidebar-is-collapsed .top-bar-left,
.sidebar.collapsed .top-bar-left {
    width: 70px;
}

html.sidebar-is-collapsed .sidebar-toggle-btn i,
.sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

/* Collapsed Sidebar State */
html.sidebar-is-collapsed .sidebar,
.sidebar.collapsed {
    width: 70px;
}

html.sidebar-is-collapsed .sidebar .sidebar-text,
html.sidebar-is-collapsed .sidebar .user-profile .info,
html.sidebar-is-collapsed .sidebar .user-caret,
html.sidebar-is-collapsed .sidebar nav ul li a .badge,
html.sidebar-is-collapsed .sidebar .logo-brand,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .user-profile .info,
.sidebar.collapsed .user-caret,
.sidebar.collapsed nav ul li a .badge,
.sidebar.collapsed .logo-brand {
    display: none !important;
}

/* Preserve height of section title so icons do not shift up or down */
html.sidebar-is-collapsed .sidebar .sidebar-section,
.sidebar.collapsed .sidebar-section {
    visibility: hidden;
    white-space: nowrap;
    overflow: hidden;
}

html.sidebar-is-collapsed .sidebar-toggle-btn i,
.sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

html.sidebar-is-collapsed .sidebar .sidebar-toggle-btn,
.sidebar.collapsed .sidebar-toggle-btn {
    position: static;
    margin: 0 auto;
    transform: none;
}

/* Collapsed Public Login Button styling */
html.sidebar-is-collapsed .sidebar .user-profile .btn,
.sidebar.collapsed .user-profile .btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
}

html.sidebar-is-collapsed .sidebar .user-profile .btn i,
.sidebar.collapsed .user-profile .btn i {
    margin: 0 !important;
    font-size: 18px !important;
}

/* Floating Popover User Dropdown when Collapsed */
html.sidebar-is-collapsed .sidebar .user-dropdown,
.sidebar.collapsed .user-dropdown {
    position: fixed;
    left: 86px;
    bottom: 16px;
    width: 220px;
    right: auto;
    background: var(--bg-card, #2b2b2b);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 99999;
    display: none;
    flex-direction: column;
}

/* Invisible hover bridge to keep mouse inside hover state when moving cursor */
html.sidebar-is-collapsed .sidebar .user-dropdown::before,
.sidebar.collapsed .user-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -20px;
    width: 20px;
}

.dropdown-user-header {
    display: none;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

html.sidebar-is-collapsed .sidebar .dropdown-user-header,
.sidebar.collapsed .dropdown-user-header {
    display: block;
}

.dropdown-user-header strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-user-header span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Hover trigger for collapsed profile floating dropdown */
html.sidebar-is-collapsed .sidebar .user-profile-wrapper:hover .user-dropdown,
.sidebar.collapsed .user-profile-wrapper:hover .user-dropdown {
    display: flex !important;
}

.sidebar .logo span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.sidebar-section {
    padding: 12px 24px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar nav {
    flex: 1;
    padding: 0 16px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 4px;
}

.sidebar nav ul li a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar nav ul li a i,
.sidebar nav ul li a svg {
    margin-right: 12px;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sidebar nav ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar nav ul li a.active {
    background: #080808;
    color: var(--accent);
}

.sidebar nav ul li a .badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.sidebar nav ul li a.active .badge {
    background: var(--accent);
    color: #fff;
}

.sidebar .user-profile {
    padding: 20px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border);
    overflow: hidden;
    white-space: nowrap;
}

.user-profile .avatar {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-profile .info {
    display: flex;
    flex-direction: column;
}

.user-profile .info strong {
    font-size: 14px;
    font-weight: 600;
}

.user-profile .info span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Main Content */
.content {
    flex: 1;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 24px 32px 16px 0 !important;
    overflow-y: auto;
    height: 100%;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
}

/* Standardized Page Headers Across All Views */
.admin-header,
.meudia-header-row,
.cal-page-header,
.page-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
}

.admin-header h2,
.meudia-header-row h2,
.meudia-header-row .greeting h2,
.cal-page-header h2,
.page-header h2 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 36px !important;
    height: 36px !important;
}

.admin-header p,
.meudia-header-row p,
.cal-page-header p,
.page-header p {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.page-body-card,
.card {
    background: #080808;
    border: none;
    border-radius: 14px;
    padding: 32px 40px;
    flex: 1;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}



.top-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.top-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    /* color: var(--accent); */
    /* border-color: var(--accent); */
    transform: translateY(-1px);
}

.top-profile-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: #000000;
    /* color: var(--accent); */
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.top-profile-btn:hover {
    /* border-color: var(--accent); */
    transform: translateY(-1px);
}

.top-profile-btn .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-profile-btn .avatar-initials {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent);
}

.top-dropdown-wrapper {
    position: relative;
}

.top-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    background: #0c0c0c;
    border: 1px solid #0c0c0c;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.top-dropdown-menu.show {
    display: flex !important;
}

.top-dropdown-menu .dropdown-header-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.top-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-dropdown-menu a i {
    font-size: 16px;
    color: var(--text-secondary);
}

.top-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.top-dropdown-menu a:hover i {
    color: var(--accent);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
}

.btn-ai {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0 16px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-ai:hover,
.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--bg-card);
}

.card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card h3 svg,
.card h3 i {
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-value.blue {
    color: #5dade2;
}

.metric-value.green {
    color: #48c9b0;
}

.metric-value.orange {
    color: #f5b041;
}

.metric-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Custom Progress Bars */
.progress-list {
    list-style: none;
}

.progress-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    width: 100px;
    font-size: 13px;
    font-weight: 500;
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: #444;
    border-radius: 3px;
    margin: 0 16px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--accent);
    border-radius: 3px;
}

.progress-value {
    font-size: 13px;
    font-weight: 600;
    width: 24px;
    text-align: right;
}

/* Badge List */
.badge-list {
    list-style: none;
}

.badge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.badge-item:last-child {
    margin-bottom: 0;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Various Badge Colors based on the mockup */
.badge-red {
    background: #fdedec;
    color: #c0392b;
}

.badge-blue {
    background: #ebf5fb;
    color: #2980b9;
}

.badge-green {
    background: #eaeded;
    color: #27ae60;
}

.badge-yellow {
    background: #fef9e7;
    color: #f39c12;
}

.badge-wisteria {
    background: #f4ecf8;
    color: #8e44ad;
}

.badge-gray {
    background: #f2f3f4;
    color: #7f8c8d;
}

.badge-status-dev {
    background: #e8f8f5;
    color: #117a65;
}

/* Em desenvolvimento */
.badge-status-plan {
    background: #f4ecf8;
    color: #8e44ad;
}

/* Planejado */
.badge-status-wait {
    background: #fdf2e9;
    color: #d35400;
}

/* Aguardando */
.badge-status-analysis {
    background: #f2f3f4;
    color: #34495e;
}

/* Em análise */

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.table th {
    text-align: left;
    padding: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table td:last-child,
.table th:last-child {
    white-space: normal;
}

.table tr:last-child td {
    border-bottom: none;
}

.dash-table td {
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

/* Kanban */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 24px;
}

.kanban-col {
    background: #252525;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kanban-col-header .count {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.kanban-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.kanban-card.border-orange::before {
    background: #e67e22;
}

.kanban-card.border-red::before {
    background: #e74c3c;
}

.kanban-card.border-blue::before {
    background: #3498db;
}

.kanban-card.border-yellow::before {
    background: #f1c40f;
}

.kanban-card.border-orange {
    background: rgba(230, 126, 34, 0.05);
    border-color: rgba(230, 126, 34, 0.3);
}

.kanban-card.border-red {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.3);
}

.kanban-card.border-blue {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.3);
}

.kanban-card.border-yellow {
    background: rgba(241, 196, 15, 0.05);
    border-color: rgba(241, 196, 15, 0.3);
}

.kanban-card-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.kanban-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.kanban-card h4 a {
    color: var(--text-primary);
    text-decoration: none;
}

.kanban-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.kanban-type-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: 1px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger-text);
    border-color: var(--danger-text);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #080808;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(120, 86, 255, 0.15);
}

/* Fix para a seta do Select ficar posicionada corretamente e não sobrepor o texto */
select,
.form-group select,
.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 36px !important;
}

select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23aaaaaa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px auto !important;
}

/* Custom file input styling */
input[type="file"] {
    padding: 8px;
    background: #080808;
    border: 1px dashed var(--border);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 16px;
    border: none;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

input[type="file"]::file-selector-button:hover {
    background: #444;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success);
}

.alert.error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger);
}

/* Kanban Drag and Drop */
.kanban-card[draggable="true"] {
    cursor: grab;
}

.kanban-card[draggable="true"]:active {
    cursor: grabbing;
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.kanban-col.drag-over {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    border: 1px solid var(--bg-card);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-lg {
    max-width: 900px;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Toast Notifications */
.toast {
    background: var(--bg-card);
    border: 1px solid var(--bg-card);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    transform: translateX(100%);
    font-size: 14px;
    font-weight: 500;
}

.toast.toast-success i {
    color: var(--success);
}

.toast.toast-error i {
    color: var(--danger);
}

.toast.toast-info i {
    color: var(--info);
}

.toast.toast-warning i {
    color: var(--warning);
}

.toast.hide {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s, background 0.2s;
}

.fab-btn:hover {
    transform: scale(1.1);
    background: #2563eb;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.side-panel.open {
    right: 0;
}

.side-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-panel-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* Custom scrollbar for side panel */
.side-panel-body::-webkit-scrollbar {
    width: 6px;
}

.side-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.side-panel-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.side-panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Quick Period Filters */
.btn-period {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.btn-period:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-period.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

/* User Profile Sidebar Dropdown */
.user-dropdown {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.user-dropdown.show {
    display: flex;
    animation: fadeIn 0.2s;
}

.user-dropdown a {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hide mobile nav items on desktop */
.mobile-only-nav {
    display: none;
}

/* Responsive adjustments */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    /* Bottom Action Bar for Public Pages (Floating Style) */
    .public-layout .sidebar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
    }

    .public-layout .sidebar .logo {
        padding: 0;
    }

    .public-layout .sidebar-section {
        display: none;
    }

    .public-layout .mobile-only-nav {
        display: block;
    }

    .public-layout .sidebar nav {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        background: #1c1c1e;
        /* Dark iOS style background */
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        display: flex;
        z-index: 1000;
        padding: 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }

    .public-layout .sidebar nav ul {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 0;
        padding: 4px 8px;
    }

    .public-layout .sidebar nav ul li {
        flex: 1;
        margin: 0;
        list-style: none;
    }

    .public-layout .sidebar nav ul li a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 4px 12px 4px;
        font-size: 11px;
        font-weight: 500;
        border-radius: 16px;
        margin: 0;
        height: 100%;
        color: #8e8e93;
        /* Gray inactive text */
        text-decoration: none;
        background: transparent !important;
        position: relative;
    }

    .public-layout .sidebar nav ul li a i {
        margin-right: 0;
        margin-bottom: 4px;
        font-size: 24px;
        color: #8e8e93;
        /* Gray inactive icon */
    }

    /* Active State styling */
    .public-layout .sidebar nav ul li a.active {
        color: #3b82f6 !important;
        /* Blue text */
    }

    .public-layout .sidebar nav ul li a.active i {
        color: #3b82f6 !important;
        /* Blue icon */
    }

    /* The active bottom indicator bar */
    .public-layout .sidebar nav ul li a.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 3px;
        background-color: #3b82f6;
        border-radius: 3px 3px 0 0;
    }

    .public-layout .user-profile {
        display: none !important;
    }

    .public-layout .content {
        padding: 12px 16px;
        padding-bottom: 100px;
        /* Extra space for the floating bottom bar */
        height: auto;
        overflow-y: visible;
    }

    /* General Form Condensation for Mobile */
    .content {
        padding: 16px 20px;
        height: auto;
        overflow-y: visible;
    }

    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .admin-header h2 {
        font-size: 18px;
    }

    .admin-header p {
        font-size: 13px;
        margin: 0;
    }

    .form-group {
        margin-bottom: 8px !important;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
    }

    .card {
        padding: 16px;
        margin-bottom: 16px;
    }
}

/* ========================================
   CHAMADO DETAIL MODAL (Redesigned)
   Inspired by Claude Desktop / Linear
   ======================================== */

/* Overlay overrides for chamado modal */
#modalChamado .modal-content.modal-chamado,
#modalEditTemplate .modal-content.modal-chamado {
    width: 960px;
    max-width: 95vw;
    height: 640px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

/* Header */
.chamado-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chamado-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.chamado-modal-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, rgba(59, 130, 246, 0.4) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chamado-modal-header-text h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.chamado-modal-header-text .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chamado-modal-header-text .subtitle code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Inter', monospace;
}

.chamado-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}

.chamado-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Body: Sidebar + Content */
.chamado-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Sidebar */
.chamado-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.12);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}

.chamado-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
    flex: 1;
}

.chamado-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.chamado-sidebar-item i {
    font-size: 18px;
    width: 18px;
    text-align: center;
}

.chamado-sidebar-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.chamado-sidebar-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.chamado-sidebar-item .item-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Actions (bottom fixed) */
.chamado-sidebar-actions {
    padding: 12px 10px 4px;
    margin-top: auto;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chamado-sidebar-actions .btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    width: 100%;
}

.chamado-sidebar-actions .btn-approve {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.chamado-sidebar-actions .btn-approve:hover {
    background: rgba(46, 204, 113, 0.2);
}

.chamado-sidebar-actions .btn-reject {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.chamado-sidebar-actions .btn-reject:hover {
    background: rgba(231, 76, 60, 0.2);
}

.chamado-sidebar-actions .btn-convert {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.chamado-sidebar-actions .btn-convert:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* Content Area */
.chamado-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px;
    min-width: 0;
}

.chamado-content::-webkit-scrollbar {
    width: 6px;
}

.chamado-content::-webkit-scrollbar-track {
    background: transparent;
}

.chamado-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.chamado-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Sections */
.chamado-section {
    display: none;
    animation: chamadoFadeIn 0.2s ease;
}

.chamado-section.active {
    display: block;
}

@keyframes chamadoFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section: Informações Gerais — Settings-style rows */
.chamado-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.chamado-info-row:last-child {
    border-bottom: none;
}

.chamado-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.chamado-info-label i {
    font-size: 17px;
    width: 17px;
    opacity: 0.7;
}

.chamado-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-align: right;
    max-width: 55%;
    word-break: break-word;
}

.chamado-info-value .sub {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

/* Section: Detalhes */
.chamado-detail-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.chamado-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.chamado-detail-meta code {
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Inter', monospace;
}

.chamado-detail-meta .separator {
    color: rgba(255, 255, 255, 0.12);
    font-size: 16px;
}

.chamado-detail-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 36px 0 12px 0;
}

.chamado-detail-section-title:first-of-type {
    margin-top: 0;
}

.chamado-detail-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-wrap;
    margin: 0;
}

/* Section: Timeline */
.chamado-timeline {
    position: relative;
    padding-left: 24px;
}

.chamado-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.chamado-timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.chamado-timeline-item:last-child {
    padding-bottom: 0;
}

.chamado-timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.chamado-timeline-item:first-child .chamado-timeline-dot {
    background: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
}

.chamado-timeline-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.chamado-timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    margin: 4px 0 0 0;
}

.chamado-timeline-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
}

.chamado-timeline-empty {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

.chamado-timeline-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* Section: Anexos */
.chamado-attachment-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.15s;
}

.chamado-attachment-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.chamado-attachment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chamado-attachment-icon.is-image {
    background: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chamado-attachment-icon.is-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chamado-attachment-info {
    flex: 1;
    min-width: 0;
}

.chamado-attachment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chamado-attachment-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chamado-attachment-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.chamado-attachment-actions a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.15s;
}

.chamado-attachment-actions a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.chamado-attachments-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.chamado-attachments-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.4;
}

/* Responsive for modal */
@media (max-width: 768px) {

    #modalChamado .modal-content.modal-chamado,
    #modalEditTemplate .modal-content.modal-chamado {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .chamado-modal-body {
        flex-direction: column;
    }

    .chamado-sidebar {
        width: 100%;
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
        overflow-x: auto;
    }

    .chamado-sidebar-nav {
        flex-direction: row;
        gap: 4px;
        padding: 0 8px;
    }

    .chamado-sidebar-item {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
    }

    .chamado-sidebar-actions {
        flex-direction: row;
        border-top: none;
        border-left: 1px solid var(--border);
        padding: 4px 8px;
        margin-top: 0;
    }

    .chamado-sidebar-actions .btn-action {
        padding: 8px 12px;
        font-size: 12px;
    }

    .chamado-content {
        padding: 20px;
    }

    .chamado-detail-title {
        font-size: 20px;
    }
}

/* ========================================
   PROJETO DETAIL MODAL (Redesigned)
   Inspired by Claude Desktop / Linear
   ======================================== */

.modal-content.modal-projeto {
    width: 960px;
    max-width: 95vw;
    height: 640px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.projeto-progress-header {
    flex: 1;
    max-width: 220px;
    margin-left: auto;
    margin-right: 24px;
}

.projeto-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.projeto-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.projeto-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #60a5fa 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Banner Concluido */
.projeto-banner-concluido {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
    color: #2ecc71;
}

.projeto-banner-concluido i {
    font-size: 24px;
}

.projeto-banner-concluido-text {
    font-size: 14px;
    font-weight: 500;
}

.projeto-banner-concluido-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Checklist Moderno */
.projeto-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.projeto-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    transition: all 0.15s;
}

.projeto-task-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.projeto-task-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: transparent;
    transition: all 0.15s;
    background: transparent;
}

.projeto-task-checkbox:hover {
    border-color: var(--accent);
}

.projeto-task-item.is-completed .projeto-task-checkbox,
.etapa-item.is-completed .projeto-task-checkbox {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #111;
}

.projeto-task-checkbox i {
    font-size: 10px;
    font-weight: bold;
}

.projeto-task-content {
    flex: 1;
    min-width: 0;
}

.projeto-task-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.projeto-task-item.is-completed .projeto-task-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.projeto-task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    flex-wrap: wrap;
}

.projeto-task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.projeto-task-actions {
    display: flex;
    gap: 6px;
}

.projeto-task-actions button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.projeto-task-actions button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.projeto-task-actions button.btn-delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

@media (max-width: 768px) {
    .modal-content.modal-projeto {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
}



/* Toggle Switch */
.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: var(--border);
    border-radius: 24px;
    transition: 0.3s;
    flex-shrink: 0;
}

.toggle-switch .toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--success);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}