* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #00b8d4 0%, #0077be 50%, #004ba0 100%);
    min-height: 100vh;
    margin: 0;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    padding: 20px 0;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.search-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 2px solid #e8eaed;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: #00b8d4;
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.1);
    background: white;
    transform: translateY(-1px);
}

.btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00b8d4 0%, #0077be 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 119, 190, 0.4);
    background: linear-gradient(135deg, #00c9d7 0%, #0088d1 100%);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 193, 7, 0.4);
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.4);
}

.btn-location {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-location:hover {
    background: linear-gradient(135deg, #34ce57 0%, #2dd4aa 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.btn-location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    border-right: none;
    flex: 1;
}

.input-group .form-control:focus {
    border-right: 2px solid #00b8d4;
}

.button-group {
    text-align: center;
    margin-top: 10px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #667eea;
}

.loading .spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.results-header {
    background: linear-gradient(135deg, #00b8d4 0%, #0077be 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.endereco-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.endereco-progress {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    max-width: 400px;
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

#progressText {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.results-list {
    max-height: 500px;
    overflow-y: auto;
}

.empresa-item {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.empresa-item:hover {
    background: linear-gradient(90deg, #f8fbff 0%, #e8f4f8 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,184,212,0.1);
}

.empresa-item:last-child {
    border-bottom: none;
}

.empresa-cnpj {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0077be;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.empresa-razao {
    font-size: 1rem;
    color: #333;
    margin-bottom: 5px;
}

.empresa-endereco {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.empresa-endereco-detalhado {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.4;
}

.empresa-endereco-detalhado.consultando {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    animation: pulse 2s infinite;
    color: #92400e;
}

.empresa-endereco-detalhado.consultado {
    background-color: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.empresa-endereco-detalhado.erro {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.empresa-situacao {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.situacao-ativa {
    background-color: #d4edda;
    color: #155724;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 30px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #667eea;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f4f8 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #00b8d4;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,184,212,0.1);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,184,212,0.15);
}

.info-label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1rem;
}

.info-value {
    color: #2c2c2c;
    word-break: break-word;
    font-size: 1.05rem;
}

.socios-list {
    list-style: none;
}

.socio-item {
    background: #f8f9ff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.admin-nav {
    background: rgba(255,255,255,0.15);
    padding: 20px 0;
    margin-bottom: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1rem;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

.config-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.config-section h2 {
    color: #0077be;
    margin-bottom: 25px;
    border-bottom: 3px solid #e8f4f8;
    padding-bottom: 15px;
    font-weight: 700;
    font-size: 1.8rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.proxy-fields {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.proxy-fields.show {
    display: grid;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }

    .header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .header p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .search-container {
        padding: 25px 20px;
        margin-bottom: 25px;
        border-radius: 15px;
    }

    .modal-content {
        margin: 5% 5%;
        width: 90%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 15px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .trust-badges {
        gap: 10px;
        justify-content: center;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .input-group .form-control {
        border-radius: 12px;
        border: 2px solid #e8eaed;
    }

    .btn-location {
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 0.9rem;
        width: 100%;
    }

    .login-form {
        padding: 25px 20px;
        margin: 20px 10px;
    }

    .login-form .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .security-info {
        padding: 20px 15px;
    }

    .security-info .info-item {
        margin-bottom: 20px;
        padding: 15px;
    }

    .btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 14px 24px;
        touch-action: manipulation;
    }

    .admin-nav a {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .form-control {
        font-size: 16px;
        min-height: 48px;
        padding: 14px 16px;
    }

    .admin-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .empresa-item {
        padding: 15px;
        margin-bottom: 12px;
    }

    .empresa-nome {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .empresa-cnpj {
        font-size: 0.9rem;
    }

    .modal {
        padding: 10px;
    }

    .modal-content {
        border-radius: 15px;
        max-width: 100%;
        margin: 10px;
        width: calc(100% - 20px);
    }

    .endereco-progress {
        margin-top: 15px;
    }

    .progress-bar {
        height: 8px;
    }

    .config-section {
        margin-bottom: 25px;
        padding: 20px 15px;
    }

    .config-section h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        margin-bottom: 8px;
        font-size: 1rem;
    }

    .extreme-footer {
        padding: 25px 0;
        margin-top: 30px;
    }

    .footer-content {
        padding: 0 15px;
    }

    .alert {
        margin: 15px 0;
        padding: 12px 15px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .loading .spinner {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .header {
        margin-bottom: 30px;
        padding: 15px 0;
    }

    .header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .header p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .search-container {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .btn-primary, .btn-secondary, .btn-location {
        font-size: 0.95rem;
        padding: 12px 20px;
        min-height: 44px;
    }

    .form-control {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 44px;
    }

    .trust-badges {
        gap: 8px;
    }

    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 15px;
    }

    .admin-nav {
        gap: 8px;
        margin-bottom: 20px;
    }

    .admin-nav a {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .empresa-item {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 10px;
    }

    .empresa-nome {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .empresa-cnpj {
        font-size: 0.85rem;
    }

    .empresa-endereco {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .modal {
        padding: 5px;
    }

    .modal-content {
        margin: 5px;
        width: calc(100% - 10px);
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 10px 15px;
        max-height: 65vh;
    }

    .config-section {
        padding: 15px 10px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .config-section h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .info-item {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .info-item h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .info-item p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .login-form {
        padding: 20px 15px;
        margin: 15px 5px;
        border-radius: 12px;
    }

    .security-info {
        padding: 15px 10px;
    }

    .extreme-footer {
        padding: 20px 0;
        font-size: 0.85rem;
    }

    .footer-bottom {
        padding-top: 15px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .empresa-item:hover,
    .badge:hover,
    .admin-nav a:hover,
    .info-item:hover {
        transform: none;
        box-shadow: inherit;
    }

    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .empresa-item:active {
        background-color: #f8f9fa;
        transition: background-color 0.1s ease;
    }

    .close {
        padding: 15px;
        font-size: 24px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .header {
        margin-bottom: 25px;
        padding: 10px 0;
    }

    .header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .header p {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .search-container {
        padding: 20px;
        margin-bottom: 20px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-body {
        max-height: 55vh;
    }
}

@media (display-mode: standalone) {
    .container {
        padding-top: 30px;
    }

    .header {
        padding-top: 10px;
    }
}

/* Estilos para página de login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin-bottom: 40px;
}

.login-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.form-icon {
    margin-bottom: 30px;
}

.lock-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #00b8d4 0%, #0077be 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 20px;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 30px;
}

.login-form .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.login-form .btn {
    min-width: 120px;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-info .info-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    color: white;
}

.security-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.security-info p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Footer no estilo Extreme */
.extreme-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info h3 {
    color: #00b8d4;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-info p, .footer-security p {
    opacity: 0.9;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* Estilos específicos para consultas */
.section-title {
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #00b8d4;
    padding-bottom: 10px;
}

.results-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tabela padrão para resultados */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.table thead th {
    background: #f6f9fc;
    color: #334155;
    font-weight: 700;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #e5eaf0;
}

.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.table tbody tr:hover {
    background: #f2f8ff;
}

.table td:first-child {
    font-weight: 700;
    color: #0077be;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.status-ativa {
    color: #28a745;
    font-weight: 600;
}

.empresa-info {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #00b8d4;
}

.empresa-nome {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.empresa-fantasia {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.empresa-cnpj {
    color: #00b8d4;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.socio-cargo {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.socio-desde {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.empresa-situacao {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
}

.socio-nome {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.input-group .btn {
    border-radius: 0 12px 12px 0;
    border-left: none;
    white-space: nowrap;
}

.input-group .form-control:focus + .btn {
    border-left: 2px solid #00b8d4;
}

/* ========== ESTILOS PARA SISTEMA DE USUÁRIOS ========== */

/* Abas de navegação */
.admin-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    margin: 0 5px;
    border-radius: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.tab-btn.active {
    background: white;
    color: #00b8d4;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cabeçalho da seção */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

/* Tabela de usuários */
.users-table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.users-table tr:hover {
    background: #f8f9fa;
}

.users-table tr:last-child td {
    border-bottom: none;
}

/* Botões pequenos */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-right: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e04555 0%, #d73447 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.modal form {
    padding: 30px;
}

.modal .form-group {
    margin-bottom: 25px;
}

.modal .form-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

/* Grid de permissões */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.permission-item:hover {
    background: #f8f9fa;
    border-color: #00b8d4;
}

.permission-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.permission-item span {
    font-size: 0.9rem;
    color: #495057;
}

/* Tabela de sessões */
.sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sessions-table th,
.sessions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sessions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sessions-table code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
}

.sessions-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Página de erro de acesso */
.error-page {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 20px 0;
}

.error-page h1 {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 15px;
}

/* Responsividade para usuários */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        margin: 0;
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 800px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .modal form {
        padding: 20px;
    }
    
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-tabs {
        margin: 0 -20px 20px;
        border-radius: 0;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .users-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal form {
        padding: 20px;
    }
} 