/** 
 * MRO Theme - Interface Principal
 * Cores: Preto, Cinza, Azul e Branco
 * Bordas Arredondadas e Efeitos Hover
 */

/* Container principal com tema MRO */
#igBotInjectedContainer {
    background: linear-gradient(135deg, #424242 0%, #616161 100%); /* Fraco cinza escuro */
    border: 3px solid #fc3667;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

#igBotInjectedContainer * {
    color: #ffffff;
    color-scheme: dark;
}

/* Cabeçalho principal */
#igBotHeading {
    background: linear-gradient(135deg, #fc3667 0%, #fc3667 100%); /* Azul */
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

#igBotHeading h1 {
    color: #000000 !important;
    font-weight: bold;
    text-shadow: none;
    font-size: 28px;
}

#igBotHeading h2 {
    color: #424242 !important;
    font-weight: normal;
}

#igBotStatusDiv {
    color: #000000 !important;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 10px;
}

/* Dialog personalizado */
#igBotDialog {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 4px solid #fc3667;
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    color: #000000;
}

#igBotDialogQuestion {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
}

/* Botões da extensão */
.igBotInjectedButton,
button,
input[type="button"],
input[type="submit"] {
    background: linear-gradient(135deg, #424242 0%, #616161 100%); /* Fraco cinza escuro */
    color: #ffffff !important;
    border: 2px solid #fc3667;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.igBotInjectedButton:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #fc3667 0%, #fc3667 100%); /* Azul */
    color: #000000 !important;
    border-color: #424242;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.4);
}

.igBotInjectedButton:active,
button:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

/* Botões especiais (OK, Cancel, etc.) */
#btnDialogOK {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%); /* Mantido verde para OK */
    border-color: #7d36fc;
}

#btnDialogOK:hover {
    background: linear-gradient(135deg, #7d36fc 0%, #7d36fc 100%); /* Azul */
    color: #000000 !important;
}

#btnDialogCancel {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%); /* Mantido vermelho para Cancel */
    border-color: #7d36fc;
}

#btnDialogCancel:hover {
    background: linear-gradient(135deg, #616161 0%, #424242 100%); /* Fraco cinza escuro */
    color: #ffffff !important;
    border-color: #7d36fc;
}

/* Tabs com design MRO */
.pc-tab nav ul {
    background: linear-gradient(135deg, #424242 0%, #212121 100%); /* Fraco cinza escuro */
    border-radius: 15px;
    padding: 5px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pc-tab nav ul li {
    margin: 5px;
}

/* Seções de conteúdo */
.pc-tab section {
    background: rgba(224, 224, 224, 0.05); /* Fundo cinza com transparência */
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(33, 150, 243, 0.3); /* Azul com transparência */
}

/* Inputs e selects */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%); /* Fundo cinza */
    border: 2px solid #616161;
    border-radius: 10px;
    padding: 8px 12px;
    color: #000000;
    transition: all 0.3s ease;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #7d36fc;
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.4);
    background: #ffffff;
    outline: none;
}

input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
select:hover,
textarea:hover {
    border-color: #7d36fc;
    background: #ffffff;
}

/* Checkboxes personalizados */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 2px solid #616161;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #7d36fc 0%, #7d36fc 100%); /* Azul */
    border-color: #424242;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

/* Progress bars */
.progress-bar {
    background: linear-gradient(135deg, #424242 0%, #212121 100%); /* Fraco cinza escuro */
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    border: 2px solid #7d36fc;
}

.progress-bar-fill {
    background: linear-gradient(135deg, #7d36fc 0%, #7d36fc 100%); /* Azul */
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 8px;
}

/* Alertas e notificações */
.alert {
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    font-weight: 500;
    border: 2px solid;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); /* Mantido verde */
    color: #155724;
    border-color: #c3e6cb;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); /* Mantido amarelo */
    color: #856404;
    border-color: #ffeaa7;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); /* Mantido vermelho */
    color: #721c24;
    border-color: #f5c6cb;
}

/* Ícones e imagens */
img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Scrollbars personalizadas */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #424242 0%, #212121 100%); /* Fraco cinza escuro */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #b00b34 0%, #a40b36 100%); /* Azul */
    border-radius: 6px;
    border: 2px solid #424242;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ce0f4c 0%, #ae0824 100%); /* Azul */
}

/* Animações e transições globais */
* {
    transition: all 0.3s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    #igBotInjectedContainer {
        border-radius: 15px;
        padding: 10px;
    }
    
    .igBotInjectedButton {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .pc-tab nav label {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Estados especiais */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f5f5f5;
    border-top: 3px solid #7d36fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Melhorias de acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Efeitos de foco para acessibilidade */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #7d36fc;
    outline-offset: 2px;
}
