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

:root {
    /* Colors extracted from InfoPanda */
    --bg-dark: #121E2D;
    --card-bg: #1A293A;
    --sidebar-bg: #2E363F;
    --header-bg: #2E363F;
    --primary-green: #27AE60;
    --primary-purple: #7D5FFF;
    --accent-blue: #27A9E3;
    --text-white: #FFFFFF;
    --text-grey: #D1D8E0;
    --text-muted: #939DA8;
    --input-bg: #243447;
    --input-border: #3D4E63;

    /* Status Colors */
    --status-red: #F74D4D;
    --status-orange: #FFB848;
    --status-blue: #27A9E3;
    --status-green: #28B779;

    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: #c8dae8;
    color: #333;
    height: 100vh;
    margin: 0;
    display: flex;
    overflow: hidden;
}

/* Layout Structure */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

header {
    height: 77px;
    background-color: #2E363F;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    color: white;
    flex-shrink: 0;
}

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

.btn-back {
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.content-container {
    padding: 30px;
    flex: 1;
}

/* Sidebar Styles */
aside {
    width: 250px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.logo-container {
    padding: 25px 30px;
    font-size: 24px;
    font-weight: 800;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    background-color: var(--sidebar-bg);
    flex-shrink: 0;
}

.logo-container span {
    color: var(--accent-blue);
}

aside nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nav-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.nav-list::-webkit-scrollbar {
    width: 4px;
}

.nav-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-item {
    padding: 12px 25px;
    color: var(--text-grey);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background-color: #27a9e3;
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Submenu Styles */
.nav-item.has-submenu {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.submenu-parent {
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.submenu-parent>div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu-parent i.fa-chevron-down {
    font-size: 9px;
    background: #FF5B5C;
    color: white;
    padding: 4px;
    border-radius: 3px;
    transition: transform 0.3s;
}

.nav-item.open .submenu-parent i.fa-chevron-down {
    transform: rotate(180deg);
}

.submenu-list {
    list-style: none;
    display: none;
    background: #24292E;
}

.nav-item.open .submenu-list {
    display: block;
}

.sub-nav-item {
    padding: 10px 25px 10px 55px;
    color: #939DA8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.sub-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.sub-nav-item.active {
    background: var(--accent-blue) !important;
    color: white !important;
    font-weight: 700;
}

/* Buttons & Elements */
.btn-green {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-green:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Card styles */
.card-table {
    background: white;
    border-radius: 8px;
    border: 1px solid #DDD;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    background: #F8F9FA;
    border-bottom: 1px solid #DDD;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-weight: 700;
    color: #2E363F;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action Buttons Square High-Fidelity */
.btn-action-square {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: filter 0.2s;
    flex-shrink: 0;
}

.btn-action-square:hover {
    filter: brightness(0.9);
}

.btn-action-square i {
    width: auto !important;
    font-size: 14px;
}

/* --- NOVO LAYOUT LAUNCHPAD (ESTILO PORTAL) --- */
.launchpad-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.lp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.lp-item:hover {
    transform: translateY(-10px);
}

.lp-icon-box {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 42px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #ccc;
}

.lp-label {
    font-size: 14px;
    font-weight: 700;
    color: #334D6E;
    text-align: center;
    white-space: nowrap;
}

.lp-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF4757;
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    box-shadow: 0 4px 8px rgba(255, 71, 87, 0.4);
}

/* Cores Temáticas */
.lp-bg-red { background: linear-gradient(135deg, #FF6B6B, #EE5253); }
.lp-bg-teal { background: linear-gradient(135deg, #1DD1A1, #10AC84); }
.lp-bg-cyan { background: linear-gradient(135deg, #48DBFB, #00D2D3); }
.lp-bg-grey { background: linear-gradient(135deg, #8395A7, #576574); }
.lp-bg-blue { background: linear-gradient(135deg, #54A0FF, #2E86DE); }
.lp-bg-purple { background: linear-gradient(135deg, #A29BFE, #6C5CE7); }
.lp-bg-green { background: linear-gradient(135deg, #55EFC4, #00B894); }
.lp-bg-deep-purple { background: linear-gradient(135deg, #D6A2E8, #8E44AD); }
.lp-bg-sky { background: linear-gradient(135deg, #74B9FF, #0984E3); }
.lp-bg-pink { background: linear-gradient(135deg, #FF9FF3, #F368E0); }
.lp-bg-dark-blue { background: linear-gradient(135deg, #34495E, #2C3E50); }
.lp-bg-light-cyan { background: linear-gradient(135deg, #81ECEC, #00CEC9); }

/* Fundo Geométrico do Portal */
.portal-background {
    background-color: #c8dae8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18 L30 15 L35 35 L15 38 Z' fill='%23CBD5E0' fill-opacity='0.3'/%3E%3Cpath d='M70 10 L85 15 L80 30 L65 25 Z' fill='%23CBD5E0' fill-opacity='0.3'/%3E%3Cpath d='M10 70 L25 65 L30 80 L15 85 Z' fill='%23CBD5E0' fill-opacity='0.3'/%3E%3Cpath d='M80 70 L95 75 L90 90 L75 85 Z' fill='%23CBD5E0' fill-opacity='0.3'/%3E%3C/svg%3E");
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

footer {
    background: #FFF;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    color: #94A3B8;
    font-size: 13px;
}
/* --- SUB-NAVEGAÇÃO HORIZONTAL (ESTILO LAUNCHPAD) --- */
.sub-nav-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow-x: auto;
    scrollbar-width: none;
}

.sub-nav-container::-webkit-scrollbar {
    display: none;
}

.sub-nav-item-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    min-width: 90px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.sub-nav-item-btn:hover {
    background: #F8FAFC;
    transform: translateY(-3px);
}

.sub-nav-item-btn.active {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.sub-nav-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sub-nav-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-align: center;
    text-transform: uppercase;
}

/* Cores das Sub-abas */
.bg-faturas { background: linear-gradient(135deg, #607D8B, #455A64); }
.bg-dre { background: linear-gradient(135deg, #81ECEC, #00CEC9); }
.bg-contas { background: linear-gradient(135deg, #6C5CE7, #4834D4); }
.bg-convenios { background: linear-gradient(135deg, #F093FB, #F5576C); }
.bg-bandeiras { background: linear-gradient(135deg, #FF9F43, #EE5253); }
.bg-categorias { background: linear-gradient(135deg, #1DD1A1, #10AC84); }

.btn-export {
    background: #34495E;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
