/* Button Styles - Стили кнопок ТРОН */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--tron-blue), #00CCFF);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--tron-dark-blue), var(--tron-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

/* Secondary Button */
.btn-secondary {
    background-color: var(--tron-gray);
    color: var(--tron-text);
    border: 1px solid #E5E5E5;
}

.btn-secondary:hover {
    background-color: #E0E0E0;
    color: var(--tron-text);
    transform: translateY(-1px);
}

/* Success Button */
.btn-success {
    background-color: var(--tron-success);
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Warning Button */
.btn-warning {
    background-color: var(--tron-warning);
    color: #212529;
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Danger Button */
.btn-danger {
    background-color: var(--tron-danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Info Button */
.btn-info {
    background-color: var(--tron-info);
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* Outline Buttons */
.btn-outline-primary {
    color: black;
    background-color: transparent;
    position: relative;
    padding-right: 2.5rem;
}

.btn-outline-primary > * {
    position: relative;
    z-index: 2;
}

.btn-outline-primary::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 52%;
    transform: translateY(-50%);
    color: var(--tron-blue);
    font-size: 0.9em;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-outline-primary:hover {
    background-color: var(--tron-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary:hover::after {
    color: white;
    right: 0.8rem;
}

.btn-outline-secondary {
    color: var(--tron-text);
    border: 2px solid #E5E5E5;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--tron-gray);
    color: var(--tron-text);
    transform: translateY(-1px);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 10px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 20px;
    border-radius: 12px;
}

/* Icon Buttons */
.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 35px;
    height: 35px;
}

.btn-icon.btn-lg {
    width: 55px;
    height: 55px;
}

/* Floating Action Button */
.btn-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tron-blue), #00CCFF);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
    z-index: 1000;
}

.btn-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.5);
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    border-radius: 0;
    border-right-width: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right-width: 1px;
}

/* Loading State */
.btn.loading {
    color: transparent;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Special Tron Button */
.btn-Tron {
    background: linear-gradient(135deg, var(--tron-blue), #00CCFF);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-Tron::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-Tron:hover::before {
    left: 100%;
}

.btn-Tron:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}