/* Tabs */
.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs .nav-link {
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
    border: none;
}

.nav-tabs .nav-link i {
    margin-right: 5px;
}

/* Forms */
.config-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Logo Upload */
.logo-upload {
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

.logo-upload img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    gap: 10px;
}

.form-control-color {
    width: 60px;
    height: 38px;
    padding: 3px;
    border-radius: 5px;
}

/* Toast */
.toast {
    background: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.toast-header {
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px 8px 0 0;
}

.toast-body {
    color: var(--cor-terciaria);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Input Groups */
.input-group-text {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Toast Error */
.toast-header.bg-danger {
    background-color: #dc3545 !important;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .config-form {
        padding: 15px;
    }
    
    .logo-upload {
        margin-bottom: 20px;
    }
}
