/* Icon Button Styles */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 5px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.icon-btn-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.icon-btn:hover .icon-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Icon button colors */
.icon-btn-primary {
    background-color: #2b79c2;
}

.icon-btn-primary:hover {
    background-color: #1e5a8c;
}

.icon-btn-primary .icon-svg {
    color: white;
}

.icon-btn-secondary {
    background-color: #6c757d;
}

.icon-btn-secondary:hover {
    background-color: #5a6268;
}

.icon-btn-secondary .icon-svg {
    color: white;
}

.icon-btn-success {
    background-color: #28a745;
}

.icon-btn-success:hover {
    background-color: #218838;
}

.icon-btn-success .icon-svg {
    color: white;
}

.icon-btn-danger {
    background-color: #dc3545;
}

.icon-btn-danger:hover {
    background-color: #c82333;
}

.icon-btn-danger .icon-svg {
    color: white;
}

/* --- NEW CLASS --- */
/* For buttons with a standard background but a green icon */
.icon-btn-green-icon {
    /* Use secondary background as a base, or choose another */
    background-color: #6c757d; /* Gray background */
}
.icon-btn-green-icon:hover {
    background-color: #5a6268;
}
.icon-btn-green-icon .icon-svg {
    color: #28a745; /* Green icon (#28a745 is the Bootstrap success green) */
}
/* --- END NEW CLASS --- */

/* Icon button sizes */
.icon-btn-sm {
    width: 24px;
    height: 24px;
}

.icon-btn-md {
    width: 44px;
    height: 44px;
}

.icon-btn-lg {
    width: 56px;
    height: 56px;
}

/* Icon button groups */
.icon-btn-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

/* SVG Icon styles */
.icon-svg {
    width: 24px;
    height: 24px;
}

.icon-svg-sm {
    width: 18px;
    height: 18px;
}

.icon-svg-lg {
    width: 32px;
    height: 32px;
}

/* Text with icon style */
.text-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0 5px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.text-icon-btn .icon-svg {
    margin-right: 8px;
}

.text-icon-btn-primary {
    background-color: #2b79c2;
}

.text-icon-btn-primary:hover {
    background-color: #1e5a8c;
}

.text-icon-btn-secondary {
    background-color: #6c757d;
}

.text-icon-btn-secondary:hover {
    background-color: #5a6268;
}

.text-icon-btn-success {
    background-color: #28a745;
}

.text-icon-btn-success:hover {
    background-color: #218838;
}

/* Icon animation classes */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-anim-spin {
    animation: spin 1.5s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.icon-anim-pulse {
    animation: pulse 1.5s ease infinite;
}