/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2f3136;
    border-radius: 12px;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cabeçalho do Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.close:hover {
    opacity: 1;
    color: #ff4757;
}

/* Estilos do Formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.btn-save {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
}

.layerpop-settings label {
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 1.05rem;
}
.layerpop-settings .form-group {
    margin-bottom: 22px;
}
.layerpop-settings input[type="file"].input-file {
    background: #18191c;
    color: #fff;
    border: 1.5px solid #00ff88;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    margin-top: 6px;
    width: 100%;
    transition: border 0.2s;
}
.layerpop-settings input[type="file"].input-file:focus {
    border-color: #ff73fa;
    outline: none;
}
.layerpop-settings .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.layerpop-settings .btn-secondary:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: translateY(-2px);
}
/* Switch bonito para toggle */
.layerpop-settings .switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  vertical-align: middle;
  margin-left: 8px;
}
.layerpop-settings .switch input { display: none; }
.layerpop-settings .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  transition: .4s;
  border-radius: 28px;
}
.layerpop-settings .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,255,136,0.13);
}
.layerpop-settings .switch input:checked + .slider {
  background: linear-gradient(45deg, #00ff88, #00cc6a);
}
.layerpop-settings .switch input:checked + .slider:before {
  transform: translateX(24px);
}