@charset "UTF-8";
:root {
    --bg: #f2f8f7;
    --surface: #ffffff;
    --line: #d8e6e3;
    --text: #1f2b3a;
    --muted: #5b6676;
    --brand: #0f766e;
    --brand2: #13a39d;
    --dark-1: #172130;
    --dark-2: #0f1726;
    --dark-3: #1f2937;
    --ok: #22c55e;
    --error: #ef4444;
    --info: #06b6d4;
} 
* { box-sizing: border-box; margin:0; padding:0;  } 
html, body {
    width: 100%;
    border: 0;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
} 
body {
    background:
        radial-gradient(1200px 500px at 10% -10%, #dff7f2 0%, #01010101 60%),
        radial-gradient(900px 420px at 90% 0%, #e6fbf8 0%, #01010101 55%),
        var(--bg);
    color: var(--text);
}
body img:not([width]):not([height]),body video:not([width]):not([height]),body iframe:not([width]):not([height]),body svg:not([width]):not([height]) {
    aspect-ratio: auto 640/360
}
a { color: #0f6988; text-decoration: none; }
a:hover { text-decoration: underline; }
.scroler{ overflow-y: scroll; }
.container { max-width: 1240px; }
.pointer { cursor: pointer; }
.text-center{ text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
/*.flex { display: flex; }*/
.flex-col { flex-direction: column; }
.flex-grow { flex: 1 1 auto; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-x-2 > * + * { margin-left: .5rem; }
.p-2 { padding: .5rem; }
.p-4 { padding: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pt-4 { padding-top: 1rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mb-3 { margin-bottom: .75rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.rounded { border-radius: .35rem; }
.rounded-md { border-radius: .45rem; }
.rounded-lg { border-radius: .75rem; }
.rounded-b-lg { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
.border { border: 1px solid var(--line); }
.border-gray-700 { border-color: #2f3f52; }
.shadow-lg { box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.bg-gray-900 { background: var(--dark-2); }
.bg-gray-900\/50 { background: rgba(15, 23, 38, .65); }
.bg-gray-800 { background: linear-gradient(180deg, #172130 0%, #111927 100%); color: #ebf3ff; }
.bg-gray-700 { background: #1f2e40; color: #ebf3ff; }
.bg-gray-100 { background: #eff7f5; }
.hover\:bg-gray-600:hover { background: #2d4056; text-decoration: none; }
.hover\:bg-gray-700:hover { background: #1a3148; text-decoration: none; }
.text-white { color: #ffffff; }
.text-gray-300 { color: #c5d1e0; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #7b8a9e; }
.text-gray-900 { color: #111827; }
.text-blue-400 { color: #38bdf8; }
.text-blue-300 { color: #7dd3fc; }
.text-green-400, .text-green-500 { color: var(--ok); }
.text-red-400, .text-red-500 { color: var(--error); }
.text-cyan-400 { color: var(--info); }
.text-yellow-500 { color: #eab308; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-\[10px\] { font-size: 10px; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.75rem; }
.text-4xl { font-size: 2rem; }
.text-5xl { font-size: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.block { display: block; }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.w-50 { width: 100%; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.bottom-1 { bottom: .25rem; }
.right-1 { right: .25rem; }
.z-20 { z-index: 20; }
.overflow-y-auto { overflow-y: auto; }
.max-h-40 { max-height: 10rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-1\.5 { gap: .375rem; }
.transition-colors { transition: background .18s ease, color .18s ease; }
.duration-300 { transition-duration: .3s; }
.min-h-screen { min-height: 100vh; }
.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #60738b; border-radius: 8px; }
.header-nav a { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 10px; }
.header-nav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
/*Paddding*/
.p-0-5{
    padding: 0.5em;
}

/*bg*/
.bg-red-600 {
    background-color: #f0520a;
}
.bg-red-600:hover {
    background-color: #ff090a;
}
.bg-blue-600 {
    background-color: #10A0F9;
}
.bg-blue-600:hover {
    background-color: #1F10F4;
}
.project-tech-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    background: #dff5f1;
    color: #0d5e57;
    border: 1px solid #c8e7e1;
}
.projects-header {
    display: flex;
    align-items: baseline; justify-content: flex-start; 
    gap: 10px;
    margin-bottom: .75rem;
    flex-wrap: wrap;
    #abrirProjetosBtn{
        outline: none;
        outline-style: hidden;
        border: 0;
        font-size: 1em;
    }
}
.view-switch {
    display: inline-flex;
    border: 1px solid #c8ddd9;
    border-radius: 999px;
    overflow: hidden;
    background: #f5fcfb;
}
.view-switch button {
    border: 0;
    background: #01010101;
    color: #3f4f62;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
}
.view-switch button.is-active {
    background: #10A0F9;
    color: #ffffff;
}
#projectsGrid.projects-list-mode {
    grid-template-columns: 1fr 1fr;
}
#projectsGrid.projects-list-mode .project-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    padding-top: .45rem;
    padding-bottom: .45rem;
    min-height: 44px;
    align-items: center;
    height: fit-content;
    margin-bottom: 1em;
}
#projectsGrid.projects-list-mode .project-item > div:first-child {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}
#projectsGrid.projects-list-mode .project-item i.fa-folder {
    font-size: 1.25rem !important;
}
#projectsGrid.projects-list-mode .project-item .font-medium {
    font-size: .82rem;
}
#projectsGrid.projects-list-mode .project-item .project-tech-marker {
    position: absolute;
    left: -4px;
    bottom: -4px;
    min-width: 20px;
    font-size: 8px;
    padding: 1px 4px;
}

/* Grid card alignment (all sizes) */
#projectsGrid:not(.projects-list-mode) .project-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    height: fit-content;
}

#projectsGrid:not(.projects-list-mode) .project-item .font-medium {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
}

#projectsGrid:not(.projects-list-mode) .project-item > div:first-child {
    align-self: flex-start;
    margin-bottom: .25rem;
}

#projectsGrid:not(.projects-list-mode) .project-item .w-16 {
    width: 4.5rem;
    height: 4.5rem;
}

#projectsGrid:not(.projects-list-mode) .project-item i.fa-folder {
    font-size: 2.4rem !important;
}

#projectsGrid:not(.projects-list-mode) .project-tech-marker {
    position: absolute;
    left: -4px;
    bottom: -4px;
    z-index: 2;
}
/* Exemplo: Adicionar ícone de alerta */
.alert::after {
    content: "\26A0";
    color: red;
    font-size: 1.2em;
}
#projectsScroller{
    height: 300px;
    max-height: 300px;
    overflow: hidden;
}
#projectsScroller > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#projectsGrid{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
#projectsGrid {
    scrollbar-width: thin;
    scrollbar-color: #5f738a #01010101;
}
#projectsGrid::-webkit-scrollbar {
    width: 20px;
    height: 8px;
}

#projectsGrid::-webkit-scrollbar-track {
    background: rgba(4,4,4,.2);
}
#projectsGrid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6f86a0, #4c5f76);
    border-radius: 50%;
    border: 2px solid #01010101;
    background-clip: content-box;
}
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}
@media (min-width: 640px) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

/* Responsive refinements */
.container { padding-left: 16px; padding-right: 16px; }
header .container { flex-wrap: wrap; gap: 12px; }
.header-nav { flex-wrap: wrap; gap: 8px; }
.header-nav a { display: inline-block; }

@media (max-width: 900px) {
    .projects-header { align-items: baseline; justify-content: flex-start; }
    .view-switch { width: 100%; justify-content: center; }
    .view-switch button { flex: 1 1 auto; }
}

@media (max-width: 640px) {
    body { background-size: auto; }
    .text-2xl { font-size: 1.35rem; }
    .text-xl { font-size: 1.1rem; }
    .header-nav a { font-size: .75rem; padding: 5px 9px; }
    #projectsScroller { height: auto; max-height: none; }
    #projectsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
    #projectsGrid:not(.projects-list-mode) .project-item {
        padding-top: .35rem;
        padding-bottom: .35rem;
        padding-left: .35rem;
        padding-right: .35rem;
        min-height: 76px;
        gap: .25rem;
    }
    #projectsGrid:not(.projects-list-mode) .project-item .w-16 {
        width: 2.6rem;
        height: 2.6rem;
    }
    #projectsGrid:not(.projects-list-mode) .project-item i.fa-folder {
        font-size: 1.6rem !important;
    }
    #projectsGrid:not(.projects-list-mode) .project-item .font-medium {
        font-size: .72rem;
    }
    #projectsGrid:not(.projects-list-mode) .project-item .project-tech-marker {
        min-width: 22px;
        font-size: 9px;
        padding: 1px 4px;
    }
}
