/* ===========================
   RESET E CONFIGURAÇÕES GERAIS
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ea529;
    --primary-hover: #1a9c15;
    --secondary-color: #6b7280;
    --danger-color: #eb1e1e;
    --warning-color: #f59e0b;
    --purple-color: #8b5cf6;

    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #d1d5db;
    --text-primary: #111827;
    --text-secondary: #6b7280;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

    --border-radius: 6px;
    --transition: all 0.1s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 1s linear infinite;
}

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

/* ===========================
   SHARED BUTTONS
   =========================== */

/* Secondary button - for secondary actions (filter, sync, new column, cancel, etc.) */
.btn-default {
    padding: 8px 20px;
    background: none;
    border: var(--text-secondary) 1px solid;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-default img {
    fill: white;
    height: 1rem;
    width: 1rem;
}

.btn-default:hover {
    background: #475569;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Secondary button active state (for filters when active) */
.btn-default.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-default.active:hover {
    background: var(--primary-hover);
}

/* Danger button - for destructive actions (delete, remove, etc.) */
.btn-danger {
    padding: 8px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Success button - for positive actions (confirm, sync, open, etc.) */
.btn-success {
    padding: 8px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary-color);
    color: white;
}

.btn-success:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
