/* Estilos para botões */

.material-symbols-rounded.fill {
  font-variation-settings:
  'FILL' 1,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.btn, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 50ms ease-in-out;
    border: none;
    outline: none;
    text-decoration: none;
    gap: 10px;
    width: auto;
    max-width: 100%;
    position: relative;
    white-space: nowrap;
}

.btn.full, .btn-outline.full {
    width: 100%;
}

.btn .material-symbols-rounded, .btn-outline .material-symbols-rounded {
    font-size: 22px;
    margin: 0;
}

.btn.pill {
    border-radius: 50px;
}

.btn-primary {
    background: var(--gradient);
    color: #FFF;
    border: solid 1px var(--gradient);
}

.btn-primary:hover {
    background: var(--gradient);
    box-shadow: 0 2px 50px #721B0022 inset;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn.primary {
    background: var(--primary);
    color: #FFF;
    border: solid 1px var(--primary);
}
.btn.primary:hover {
    background: var(--primary);
    box-shadow: 0 2px 50px #721B0022 inset;
}
.btn.primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn-danger {
    background: var(--danger);
    color: var(--theme-color);
    box-shadow: 0 1px 3px #721B0000;
}

.btn-danger:hover {
    background: var(--danger);
    box-shadow: 0 2px 50px #721B0022 inset;
}

.btn-danger:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn.danger {
    background: var(--danger);
    color: var(--theme-color);
    box-shadow: 0 1px 3px #721B0000;
}
.btn.danger:hover {
    background: var(--danger);
    box-shadow: 0 2px 50px #721B0022 inset;
}
.btn.danger:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--theme-color);
    border: 1px solid rgba(200, 200, 200, 0.2);
}

.btn-secondary:hover {
    background: rgba(200, 200, 200, 0.2);
}

.btn:not(.btn-outline):not(.primary):not(.success):not(.danger):not(.warning):not(.secondary):not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info),
.btn.btn-main,
.btn.main {
    background: var(--main);
    color: #FFF;
    border: solid 1px var(--main);
}
.btn:not(.btn-outline):not(.primary):not(.success):not(.danger):not(.warning):not(.secondary):not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):hover,
.btn.btn-main:hover,
.btn.main:hover {
    background: var(--main);
    box-shadow: 0 2px 50px #721B0022 inset;
}
.btn:not(.btn-outline):not(.primary):not(.success):not(.danger):not(.warning):not(.secondary):not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):active,
.btn.btn-main:active,
.btn.main:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--theme-color);
    border: 1px solid rgba(200, 200, 200, 0.2);
}
.btn.secondary:hover {
    background: rgba(200, 200, 200, 0.2);
}

.btn.success {
    background: var(--success);
    color: var(--theme-color);
    box-shadow: 0 1px 3px #721B0000;
}
.btn.success:hover {
    background: var(--success);
    box-shadow: 0 2px 50px #721B0022 inset;
}
.btn.success:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn.warning {
    background: var(--warning);
    color: black;
    box-shadow: 0 1px 3px #721B0000;
}
.btn.warning:hover {
    background: var(--warning);
    box-shadow: 0 2px 50px #721B0022 inset;
}
.btn.warning:active {
    transform: translateY(2px);
    box-shadow: 0 2px 1px 0 #721B0055 inset;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text);
    position: relative;
    z-index: 2;
}

.btn.btn-outline,
.btn.btn-outline.primary,
.btn.btn-outline.success,
.btn.btn-outline.danger,
.btn.btn-outline.warning,
.btn.btn-outline.secondary {
    background: transparent !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    max-height: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    transition: ease-in-out 100ms;
    color: var(--text);
}

.btn-delete{
    background: var(--danger);
    color: var(--theme-color);
    
}

/* .btn-icon:hover {
} */

.btn-outline:hover {
    background: transparent;
}

.btn:disabled,
.btn-outline:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(10%);
}
.btn:disabled:hover,
.btn-outline:disabled:hover {
    transform: none;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    opacity: 0 !important;
    z-index: -1;
    background: transparent !important;
}

.btn-outline.primary:hover::before,
.btn-outline.success:hover::before,
.btn-outline.danger:hover::before {
    opacity: 0;
}

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

.btn-outline.main {
    border: solid 1px var(--main);
    color: var(--main);
}
.btn-outline.main::before {
    background: var(--main);
}

.btn-outline.success {
    border: solid 1px var(--success);
}
.btn-outline.success::before {
    background: var(--success);
}

.btn-outline.danger {
    border: solid 1px var(--danger);
}
.btn-outline.danger::before {
    background: var(--danger);
}

.btn-outline.warning {
    border: solid 1px var(--warning);
    color: var(--warning);
}
.btn-outline.warning::before {
    background: var(--warning);
}

.btn-outline.star {
    border: solid 1px var(--border-color);
}
.btn-outline.star span {
    color: var(--border-color);
}

.btn-outline.star-active {
    border: solid 1px var(--main);
}
.btn-outline.star-active span {
    color: var(--main);
}


.btn-outline.success span {
    color: var(--success);
}

.btn-outline.primary span {
    color: var(--primary);
}
.btn-outline.danger span {
    color: var(--danger);
}
.btn-outline.main span {
    color: var(--main);
}
.btn-outline.warning span {
    color: var(--warning);
}

.btn-outline.primary:hover span {
    color: var(--primary);
}
.btn-outline.success:hover span {
    color: var(--success);
}
.btn-outline.danger:hover span {
    color: var(--danger);
}
.btn-outline.main:hover span {
    color: var(--main);
}
.btn-outline.warning:hover span {
    color: var(--warning);
}

.btn-sm,
.btn-icon-sm {
    padding: 5px 10px;
    font-size: 12px;
    height: 32px;
    max-height: 32px;
    min-height: 32px;
    border-radius: 5px;
}
.btn-icon-sm {
    width: 32px;
}

.btn-lg,
.btn-icon-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-group {
    display: inline-flex;
    flex-direction: row;
    gap: 0;
}

.btn-group > .btn,
.btn-group > .btn-outline {
    border-radius: 0;
    margin: 0;
}

.btn-group > .btn + .btn,
.btn-group > .btn + .btn-outline,
.btn-group > .btn-outline + .btn,
.btn-group > .btn-outline + .btn-outline {
    margin-left: -1px;
}

.btn-group > .btn:first-child,
.btn-group > .btn-outline:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group > .btn:last-child,
.btn-group > .btn-outline:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-group > .btn-outline::before {
    border-radius: 0;
}
.btn-group > .btn-outline:first-child::before {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.btn-group > .btn-outline:last-child::before {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn .material-symbols-rounded { font-size: 22px; }
.btn-sm .material-symbols-rounded { font-size: 18px; }
.btn-lg .material-symbols-rounded { font-size: 28px; }

.btn.input-connect-button {
    margin-left: 0;
    border-left: none;
    height: 42px;
    border-radius: 0 5px 5px 0;
}

.link {
    color: #00a4e6;
    text-decoration: none;
    transition: ease-in-out 100ms;
}
.link.main {
    color: var(--main);
    text-decoration: none;
    transition: ease-in-out 100ms;
}

.link:hover {
    color: var(--primary);
}

.icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    transition: ease-in-out 100ms;
}

.icon:hover {
    background: var(--card-bg);
    color: var(--text);
}

.icon #notif-count {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    font-weight: 600;
    background: #e05151;
    border-radius: 50%;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-radius {
    border-radius: 0;
}

/* Mobile Responsive Buttons */
@media (max-width: 768px) {
    .btn, .btn-outline {
        padding: 12px 16px;
        font-size: 15px;
        height: 48px;
        min-height: 48px; /* Better touch target */
        gap: 8px;
    }
    
    .btn .material-symbols-rounded, 
    .btn-outline .material-symbols-rounded {
        font-size: 20px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn, .btn-outline {
        width: 100%;
        max-width: none;
    }
    
    /* Small buttons for table actions */
    .table .btn {
        padding: 6px 10px;
        font-size: 12px;
        height: 32px;
        min-height: 32px;
        gap: 4px;
    }
    
    .table .btn .material-symbols-rounded {
        font-size: 16px;
    }
    
    /* Icon only buttons */
    .btn-icon {
        width: 48px;
        height: 48px;
        padding: 12px;
        border-radius: 50%;
    }
    
    .btn-icon .material-symbols-rounded {
        font-size: 24px;
        margin: 0;
    }
    
    /* Floating action button */
    .btn-fab {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }
}

.btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}