/* === STANDARD BUTTONS === */
.btn-primary {
    background: #2E86AB;
    color: white;
}

.btn-outline {
    background: white;
    color: #2E86AB;
}

.btn-outline:hover {
    background: #2E86AB;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: var(--body-text);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 134, 171, 0.3);
}

.btn-secondary {
    background: #6C757D;
    color: white;
}

.btn-success {
    background: #16A34A;
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-sm:hover {
    background: #2E86AB;
    color: white;
}


/* OTHERS */
.btn {
    padding: 0.75rem 1.8rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    gap: 6px;
    display: flex;
    align-items: center;
}

.btn-secondary {
    background: white;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: var(--body-text);
}

/* Definidos APÓS .btn { border: none } para que a borda não seja sobrescrita */
.btn-outline {
    border: 1px solid #2E86AB;
}

.btn-outline:hover {
    border-color: #2E86AB;
}

.btn-primary {
    border: 1px solid transparent; /* iguala o box model do btn-outline */
}

.btn-primary:hover {
    background: #247697;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(46, 134, 171, 0.25);
}

/* === ADD BUTTON === */
.add-button {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    text-decoration: none;
    background-color: white;
    color: #2E86AB;
    border-color: #2E86AB;
    border: 1.8px solid;
}

.add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 134, 171, 0.3);
}

/* === CLOSE BUTTON MODAL === */
.modal-close {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #374151;
    transform: rotate(90deg);
}

/* === ACTION BUTTONS === */
.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.action-btn.view {
    background: #E3F2FD;
    color: #2E86AB;
}

.action-btn.edit {
    background: #FFF3E0;
    color: #F57C00;
}

.action-btn.delete {
    background: #FFEBEE;
    color: #D32F2F;
}

.action-btn.schedule {
    background: #E8F5E8;
    color: #28A745;
}

.action-btn.restock {
    background: #E8F5E8;
    color: #28A745;
}

.action-btn.clinical-record {
    background: #EDE7F6;
    color: #6A1B9A;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn-calendar {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-width: thin;
}

.action-btn-calendar.edit {
    background: #E3F2FD;
    color: #1976D2;
    border-style: solid;
    border-color: #7eb9f3;
}

.action-btn-calendar.cancel {
    background: #FFEBEE;
    color: #D32F2F;
    border-style: solid;
    border-color: #ffc5c5;
}

.action-btn-calendar.start {
    background: #E8F5E8;
    color: #388E3C;
    border-style: solid;
    border-color: #a3d9a4;
}

.action-btn-calendar.profile {
    background: #F3E5F5;
    color: #7B1FA2;
    border-style: solid;
    border-color: #d6a9e0;
}

.action-btn-calendar:hover {
    transform: scale(1.05);
}

/* === VIEW BUTTONS === */
.view-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6C757D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: #2E86AB;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

