        /* --- GERAL E RESET --- */
        body {
            font-family: 'Inter', sans-serif;
            background-color: #14161A;
            color: #A0A2A4;
            margin: 0;
            padding: 1rem;
        }

        * {
            box-sizing: border-box;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
            font-family: inherit;
        }

        a {
            color: #4A9CFF;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }
        
        /* --- CUSTOM SCROLLBAR --- */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #1C1C1C; }
        ::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #6b7280; }

        /* --- LAYOUT PRINCIPAL --- */
        .container {
            max-width: 1280px;
            margin: 0 auto;
         
        }

        header {
            margin-bottom: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        header h1 {
            font-size: 1.5rem;
            font-weight: 700;
            color: #ffffff;
            margin: 0;
        }

        header p {
            color: #9ca3af;
            margin-top: 0.25rem;
            margin-bottom: 0;
        }

        #logout-btn {
            padding: 0.625rem 1.25rem;
            background-color: transparent;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #FFFFFF;
            border: 1px solid #FFFFFF;
        }

        #logout-btn:hover {
            background-color: rgba(255, 255, 255, 0.08);
        }

        #go-complaints-btn,
        #go-applications-btn {
            padding: 0.625rem 1.25rem;
            background-color: transparent;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #FFFFFF;
            border: 1px solid #FFFFFF;
        }

        #go-complaints-btn:hover,
        #go-applications-btn:hover {
            background-color: rgba(255, 255, 255, 0.08);
        }

        /* --- SEARCH BAR --- */
        .search-container {
            margin-bottom: 1.5rem;
        }

        #search-bar {
            width: 100%;
            padding: 0.75rem 1rem;
            background-color: #1C1F2A;
            border: 1px solid #3A3D4A;
            border-radius: 0.5rem;
            color: #E5E7EB;
            font-size: 1rem;
            transition: border-color 0.2s;
        }

        #search-bar:focus {
            outline: none;
            border-color: #4A9CFF;
        }

        #search-bar::placeholder {
            color: #6b7280;
        }

        /* --- FILTROS --- */
        .filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            font-weight: 600;
            transition: all 0.2s;
            color: #9ca3af;
        }
        .filter-btn:hover {
            background-color: #1f2937;
            color: #e5e7eb;
        }
        .filter-btn-active {
            background-color: #374151;
            color: #f9fafb;
        }

        /* --- LISTA DE APLICAÇÕES / REPORTS --- */
        #applications-list,
        #complaints-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 1.25rem;
        }
        
        #no-applications, #loader {
            text-align: center;
            padding: 2.5rem 0;
            color: #6b7280;
        }

        #loader svg {
            animation: spin 1s linear infinite;
            height: 2rem;
            width: 2rem;
            color: white;
            margin: 0 auto;
        }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

        /* --- CARD DE APLICAÇÃO --- */
        .app-card {
            background-color: #1C1F2A;
            border-radius: 0.5rem;
            padding: 0.75rem 0.9rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border: 1px solid #3A3D4A;
        }
        .app-card-content {
            flex-grow: 1;
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }
        .card-user-info {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        .card-avatar {
            width: 3rem;
            height: 3rem;
            border-radius: 9999px;
            object-fit: cover;
        }
        .card-user-details h3 { font-weight: 700; font-size: 1.125rem; color: #fff; }
        .card-user-details p { font-size: 0.875rem; color: #9ca3af; }
        .card-user-details p.city { color: #6b7280; }
        .card-section { margin-top: 1rem; }
        .card-section h4 { font-size: 0.875rem; color: #9ca3af; }
        .card-industries { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
        .industry-tag { background-color: #2D2F34; color: #d1d5db; font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 9999px; }
        .card-bio { color: #fff; font-size: 0.875rem; margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .card-submitted { margin-top: 1rem; font-size: 0.75rem; color: #6b7280; }
        .card-footer {
            margin-top: 1rem;
            border-top: 1px solid #3A3D4A;
            padding-top: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* --- BOTÕES DO CARD --- */
        .card-btn {
            font-size: 0.875rem;
            border-radius: 0.5rem;
            padding: 0.625rem 1rem;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .btn-details { color: #4A9CFF; border: 1px solid #4A9CFF; }
        .btn-details:hover { background-color: rgba(74, 156, 255, 0.1); }
        .btn-approve { color: #d1d5db; }
        .btn-approve:hover { background-color: #374151; }
        .btn-deny { color: #fff; background-color: #B91C1C; }
        .btn-deny:hover { background-color: #991b1b; }
        
        /* --- BADGE DE STATUS --- */
        .status-badge {
            font-size: 0.75rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.25rem 0.625rem;
            border-radius: 9999px;
        }
        .status-pending { background-color: #3A3D4A; color: #d1d5db; border: 1px solid #4b5563; }
        .status-approved { background-color: #05966970; color: #fff; }
        .status-rejected { background-color: #dc262670; color: #fff; }

        /* --- MODAL --- */
        .modal {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 50;
            display: none; /* Initially hidden */
        }
        .modal-content-wrapper {
            background-color: #1C1C1C;
            border-radius: 0.75rem;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 42rem;
            border: 1px solid #374151;
            transform: scale(0.95);

            transition: transform 0.3s, opacity 0.3s;
        }
        .modal.visible .modal-content-wrapper {
            transform: scale(1);
            opacity: 1;
        }
        .modal-content {
            padding: 1.5rem;
            position: relative;
            max-height: 85vh;
            overflow-y: auto;
        }
        #close-modal-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: #6b7280;
            font-size: 2rem;
            line-height: 1;
            font-weight: 300;
        }
        #close-modal-btn:hover { color: #fff; }

        #modal-content-wrapper{
            background-color: #14161A;
        }

        .modal-header { display: flex; align-items: flex-start; gap: 1rem; }
        .modal-avatar { width: 3.5rem; height: 3.5rem; border-radius: 9999px; object-fit: cover; }
        .profile-photo-clickable { cursor: pointer; transition: opacity 0.2s; }
        .profile-photo-clickable:hover { opacity: 0.8; }
        .modal-header .status-badge { margin-bottom: 0.25rem; }
        .modal-header h2 { font-size: 1.25rem; font-weight: 700; color: #fff; }
        .modal-header p { color: #9ca3af; margin-top: 0.25rem; }
        .modal-body { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 0.875rem; }
        .modal-grid { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; }
        @media (min-width: 768px) { .modal-grid { grid-template-columns: 1fr 1fr; } }
        .modal-section h4 { font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
        .modal-section p { line-height: 1.5; }
        .modal-section p span:first-child { color: #6b7280; }
        .modal-section p span:last-child { color: #d1d5db; }
        .input-display { background-color: #14161A; border: 1px solid #374151; border-radius: 0.5rem; padding: 0.75rem; color: #A0A2A4; word-wrap: break-word; }
        .modal-footer {
            padding: 1rem;
            background-color: rgba(0,0,0,0.2);
            border-bottom-left-radius: 0.75rem;
            border-bottom-right-radius: 0.75rem;
            display: flex;
            gap: 0.75rem;
        }
        .modal-footer button {
            flex: 1;
            font-weight: 700;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
        }
        .btn-modal-reject {
            background-color: #4B1B1B;
            color: #F87171;
            border: 1px solid #7f1d1d;
            transition: background-color 0.2s;
        }
        .btn-modal-reject:hover { background-color: #5F2121; }
        .btn-modal-approve {
            background-color: #2D2F34;
            color: #E5E7EB;
            transition: background-color 0.2s;
        }
        .btn-modal-approve:hover { background-color: #3E4045; }

        .impact-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 0.5rem;
            padding: 0.5rem;
        }
        .impact-link a {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .copy-btn {
            margin-left: 1rem;
            background-color: #374151;
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.25rem 0.75rem;
            border-radius: 0.375rem;
        }
        .copy-btn:hover {
            background-color: #4b5563;
        }
        .photo-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 1rem;
            margin-top: 0.5rem;
        }
        .photo-gallery img {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 0.5rem;
            transition: opacity 0.2s;
        }
        .photo-gallery img:hover {
            opacity: 0.8;
        }
        .gallery-photo-clickable {
            cursor: pointer;
        }

        /* --- IMAGE LIGHTBOX --- */
        .image-lightbox {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .image-lightbox.visible {
            display: flex;
            opacity: 1;
        }
        .image-lightbox img {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 0.5rem;
        }
        #close-lightbox-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            color: #fff;
            font-size: 3rem;
            line-height: 1;
            font-weight: 300;
            background: rgba(0, 0, 0, 0.5);
            width: 3rem;
            height: 3rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.2s;
        }
        #close-lightbox-btn:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        @media (max-width: 375px) { 
            .container{
                 max-width: 90vw;
            }
            .modal-grid { grid-template-columns: 1fr 1fr; } 
            .app-card {
                max-width: 90%;
            }
            .card-user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }

    }