/* === CARDS === */
.card{
    background:linear-gradient(180deg,var(--panel),var(--panel-2));
    border:1px solid rgba(255,255,255,.06);
    border-radius:var(--radius);
    padding:18px;
    box-shadow:var(--shadow);
    transition:all .3s ease;
}

.card:hover{
    border-color:rgba(255,255,255,.1);
    transform:translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* === BADGES === */
.card-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-badge.positive {
    background: rgba(33, 192, 122, 0.15);
    color: #21c07a;
}

.card-badge.warning {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
}

.card-badge.negative {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}

.card-badge.info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196f3;
}

/* === BUTTONS === */
.btn-primary,.btn-secondary,.btn-ghost{
    border:0;
    cursor:pointer;
    font-weight:700;
    border-radius:12px;
    padding:12px 16px;
    transition:all .2s ease;
    display:inline-flex;
    align-items:center;
    gap:8px;
    text-decoration:none;
    font-family:inherit;
}

.btn-primary{
    background:linear-gradient(90deg,var(--brand),var(--brand-2));
    color:#0b0b0b;
}

.btn-primary:hover{
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(255,106,0,.3);
}

.btn-secondary{
    background:#191b1f;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}

.btn-secondary:hover{
    background:#202329;
    border-color:rgba(255,255,255,.12);
}

.btn-ghost{
    background:transparent;
    color:var(--muted);
    border:1px solid transparent;
}

.btn-ghost:hover{
    background:rgba(255,255,255,.05);
    color:var(--text);
}

.btn-ghost-small{
    width:100%;
    background:transparent;
    color:#a9b0b8;
    border:1px solid rgba(255,255,255,.10);
    padding:8px 10px;
    border-radius:10px;
    cursor:pointer;
}

.btn-ghost-small:hover{
    color:#fff;
    border-color:rgba(255,255,255,.18);
}

.btn-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    fill: currentColor;
}

/* === FORMULÁRIOS === */
.form-group{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin:10px 0;
}

.form-label{
    font-weight:600;
    font-size:.875rem;
    color:var(--text);
}

.form-input,.form-select,textarea{
    width:100%;
    background:#0f1012;
    color:var(--text);
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    padding:12px 14px;
    outline:none;
    font-family:inherit;
    transition:all .3s ease;
}

.form-input:focus,.form-select:focus,textarea:focus{
    border-color:var(--brand);
    background:rgba(255,255,255,.08);
    box-shadow:0 0 0 2px rgba(255,106,0,.1);
}

.form-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:20px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.form-select-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text);
    font-size: 0.75rem;
}

/* === MODALS === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === TOAST === */
.toast{
    position:fixed;
    right:18px;
    bottom:18px;
    background:#111;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    padding:12px 14px;
    border-radius:12px;
    z-index:10000;
    opacity:0;
    transform:translateY(10px);
    transition:all .2s ease;
}

.toast.show{
    opacity:1;
    transform:translateY(0);
}

/* === LOADING STATES === */
.is-loading {
    opacity: 0.7;
    pointer-events: none;
}