﻿        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }
        
        header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }
        
        header h1 {
            font-size: 28px;
            margin-bottom: 5px;
        }
        
        header p {
            opacity: 0.9;
            font-size: 14px;
        }
        
        .header-nav {
            margin-bottom: 12px;
        }
        
        .header-nav a {
            color: white;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            opacity: 0.95;
            padding: 6px 14px;
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 6px;
            display: inline-block;
            transition: background 0.2s;
        }
        
        .header-nav a:hover {
            background: rgba(255,255,255,0.15);
            opacity: 1;
        }
        
        .catalogo-card--send .catalogo-info p.meta {
            font-size: 13px;
            color: #888;
        }
        
        .content {
            padding: 30px;
        }
        
        .form-section {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
            margin-bottom: 30px;
        }
        
        .form-section h2 {
            color: #667eea;
            margin-bottom: 20px;
            font-size: 20px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            color: #333;
            font-weight: 500;
        }
        
        input[type="text"],
        input[type="email"],
        select,
        textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 14px;
            transition: border-color 0.3s;
            font-family: inherit;
        }
        
        textarea {
            min-height: 120px;
            resize: vertical;
            line-height: 1.5;
        }
        
        input[type="text"]:focus,
        input[type="email"]:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: #667eea;
        }
        
        input[type="file"] {
            width: 100%;
            padding: 10px;
            border: 2px dashed #e0e0e0;
            border-radius: 6px;
            background: white;
            cursor: pointer;
        }
        
        input[type="file"]:hover {
            border-color: #667eea;
        }
        
        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .btn-danger {
            background: #dc3545;
            color: white;
            padding: 8px 16px;
            font-size: 12px;
        }
        
        .btn-danger:hover {
            background: #c82333;
        }
        
        .btn-success {
            background: #28a745;
            color: white;
            padding: 8px 16px;
            font-size: 12px;
            margin-left: 5px;
        }
        
        .btn-success:hover {
            background: #218838;
        }
        
        .btn-warning {
            background: #ffc107;
            color: #212529;
            padding: 8px 16px;
            font-size: 12px;
        }
        
        .btn-warning:hover {
            background: #e0a800;
        }
        
        .catalogos-list {
            margin-top: 30px;
        }
        
        .catalogos-list h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 22px;
        }
        
        .catalogo-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        .catalogo-card:hover {
            border-color: #667eea;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .catalogo-info h3 {
            color: #333;
            margin-bottom: 8px;
            font-size: 18px;
        }
        
        .catalogo-info p {
            color: #666;
            font-size: 14px;
            margin-bottom: 4px;
        }
        
        .catalogo-actions {
            display: flex;
            gap: 10px;
        }
        
        .alert {
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            font-size: 14px;
        }
        
        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        
        .alert-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        
        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            background: #667eea;
            color: white;
            margin-left: 10px;
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }
        
        .empty-state svg {
            width: 80px;
            height: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }
        
        /* Drag and Drop */
        .drop-zone {
            border: 2px dashed #e0e0e0;
            border-radius: 8px;
            padding: 14px 16px;
            text-align: center;
            background: #fafafa;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 12px;
        }
        
        .drop-zone:hover,
        .drop-zone.drag-over {
            border-color: #667eea;
            background: #f0f2ff;
        }
        
        .drop-zone.drag-over {
            transform: scale(1.02);
        }
        
        .drop-zone p {
            margin: 4px 0;
            color: #666;
            font-size: 13px;
        }
        
        .drop-zone .icon {
            font-size: 28px;
            margin-bottom: 4px;
        }
        
        .file-info {
            margin-top: 15px;
            padding: 10px;
            background: #e8f5e9;
            border-radius: 6px;
            color: #2e7d32;
            display: none;
        }
        
        .file-info.active {
            display: block;
        }
        
        /* Pesquisa */
        .search-box {
            margin-bottom: 20px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 15px;
        }
        
        .search-box input:focus {
            border-color: #667eea;
            outline: none;
        }
        
        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            pointer-events: none;
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 2px solid #e0e0e0;
        }
        
        .tab {
            padding: 12px 24px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            color: #666;
            transition: all 0.3s;
        }
        
        .tab:hover {
            color: #667eea;
        }
        
        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Log de envios */
        .log-entry {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .log-entry.sucesso {
            border-left: 4px solid #28a745;
        }
        
        .log-entry.erro {
            border-left: 4px solid #dc3545;
        }
        
        .log-info h4 {
            margin-bottom: 5px;
            color: #333;
            font-size: 16px;
        }
        
        .log-info p {
            margin: 3px 0;
            color: #666;
            font-size: 13px;
        }
        
        .log-status {
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .log-status.sucesso {
            background: #d4edda;
            color: #155724;
        }
        
        .log-status.erro {
            background: #f8d7da;
            color: #721c24;
        }
        
        /* Modal para enviar email */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }
        
        .modal-content.modal-wide {
            max-width: 560px;
        }
        
        .ficheiro-atual {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .ficheiro-atual strong {
            color: #333;
        }
        
        .modal-header {
            margin-bottom: 20px;
        }
        
        .modal-header h3 {
            color: #333;
            font-size: 22px;
        }
        
        .modal-footer {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }
        
        .btn-secondary {
            background: #6c757d;
            color: white;
        }
        
        .btn-secondary:hover {
            background: #5a6268;
        }
        
        /* ========================================
           RESPONSIVO - MOBILE
           ======================================== */
        
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .container {
                border-radius: 8px;
            }
            
            header {
                padding: 20px 15px;
            }
            
            header h1 {
                font-size: 22px;
            }
            
            header p {
                font-size: 13px;
            }
            
            .content {
                padding: 15px;
            }
            
            .form-section {
                padding: 15px;
            }
            
            .form-section h2 {
                font-size: 18px;
            }
            
            /* FormulÃ¡rio mobile */
            input[type="text"],
            input[type="email"],
            select,
            textarea {
                font-size: 16px; /* Evita zoom no iOS */
                padding: 14px;
            }
            
            textarea {
                min-height: 100px;
            }
            
            .btn {
                width: 100%;
                padding: 14px;
                font-size: 15px;
            }
            
            /* Tabs mobile */
            .tabs {
                flex-wrap: wrap;
                gap: 5px;
            }
            
            .tab {
                flex: 1;
                min-width: 120px;
                padding: 10px 15px;
                font-size: 14px;
                text-align: center;
            }
            
            /* Cards de catÃ¡logo mobile */
            .catalogo-card {
                flex-direction: column;
                align-items: flex-start;
                padding: 15px;
            }
            
            .catalogo-info {
                width: 100%;
                margin-bottom: 15px;
            }
            
            .catalogo-info h3 {
                font-size: 16px;
                word-break: break-word;
            }
            
            .catalogo-info p {
                font-size: 13px;
                word-break: break-all;
            }
            
            .catalogo-actions {
                width: 100%;
                flex-direction: column;
                gap: 8px;
            }
            
            .catalogo-actions .btn {
                width: 100%;
            }
            
            /* Log entries mobile */
            .log-entry {
                flex-direction: column;
                align-items: flex-start;
                padding: 12px;
            }
            
            .log-info {
                width: 100%;
                margin-bottom: 10px;
            }
            
            .log-info h4 {
                font-size: 15px;
                word-break: break-word;
            }
            
            .log-info p {
                font-size: 12px;
                word-break: break-all;
            }
            
            .log-status {
                width: 100%;
                text-align: center;
            }
            
            /* Modal mobile */
            .modal-content {
                width: 95%;
                padding: 20px;
                margin: 10px;
            }
            
            .modal-header h3 {
                font-size: 18px;
            }
            
            .modal-footer {
                flex-direction: column-reverse;
            }
            
            .modal-footer .btn {
                width: 100%;
                margin-left: 0 !important;
            }
            
            /* Pesquisa mobile */
            .search-box input {
                font-size: 16px;
                padding: 14px 45px 14px 15px;
            }
            
            /* Drop zone mobile */
            .drop-zone {
                padding: 12px 14px;
            }
            
            .drop-zone .icon {
                font-size: 24px;
            }
            
            .drop-zone p {
                font-size: 13px;
            }
            
            /* Badge mobile */
            .badge {
                display: block;
                margin: 5px 0 0 0;
                width: fit-content;
            }
            
            /* Alertas mobile */
            .alert {
                font-size: 13px;
                padding: 12px;
            }
            
            /* Empty state mobile */
            .empty-state {
                padding: 40px 15px;
            }
            
            .empty-state svg {
                width: 60px;
                height: 60px;
            }
        }
        
        /* Tablets e dispositivos mÃ©dios */
        @media (min-width: 769px) and (max-width: 1024px) {
            .container {
                max-width: 95%;
            }
            
            .content {
                padding: 25px;
            }
            
            .catalogo-card {
                flex-wrap: wrap;
            }
            
            .catalogo-actions {
                margin-top: 10px;
            }
        }
        
        /* Melhorias de touch para mobile */
        @media (hover: none) and (pointer: coarse) {
            /* Aumentar Ã¡rea de toque dos botÃµes */
            .btn {
                min-height: 44px; /* RecomendaÃ§Ã£o Apple */
            }
            
            /* Remover hover states em touch devices */
            .btn:hover {
                transform: none;
                box-shadow: none;
            }
            
            .catalogo-card:hover {
                border-color: #e0e0e0;
                box-shadow: none;
            }
            
            /* Melhor feedback de toque */
            .btn:active {
                opacity: 0.8;
            }
        }
