/* ============================================
   CUSTOM BUTTON BAR STYLES - ISOLATED FROM MAIN CSS
   ============================================ */

/* Custom Button Bar Container */
.custom-button-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    width: 100%;
    align-items: stretch;
}

/* Base Custom Button Style */
.custom-btn {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    background: white !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-width: 3px !important;
    border-style: solid !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    overflow: hidden;
    outline: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    cursor: pointer !important;
}

.custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.custom-btn.active {
    background: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Border Colors - Specific to avoid conflicts */
.custom-btn.green-border {
    border-color: #28a745 !important;
}

.custom-btn.orange-border {
    border-color: #fd7e14 !important;
}

.custom-btn.blue-border {
    border-color: #17a2b8 !important;
}

.custom-btn.red-border {
    border-color: #dc3545 !important;
}

/* Hover effects */
.custom-btn.green-border:hover {
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5) !important;
}

.custom-btn.orange-border:hover {
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.5) !important;
}

.custom-btn.blue-border:hover {
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5) !important;
}

.custom-btn.red-border:hover {
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5) !important;
}

/* Button Icon Styles */
.btn-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    margin-right: 15px;
    gap: 5px;
    flex-shrink: 0;
    position: relative;
}

.btn-icon i {
    font-size: 18px !important;
    color: #6c757d !important;
}

/* Icon Badge */
.icon-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Country Flag */
.country-flag {
    font-size: 20px;
    margin-left: 5px;
}

/* Pulse Icon */
.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Special Monitor Icon for FST/FES */
.monitor-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e9ecef !important;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #adb5bd;
    font-size: 10px;
    line-height: 1.2;
}

.fst-text {
    font-weight: bold !important;
    color: #004ea8 !important;
    font-size: 10px !important;
}

.fes-text {
    font-weight: bold !important;
    color: #dc3545 !important;
    font-size: 10px !important;
}

/* Button Content Styles */
.btn-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-weight: bold !important;
    font-size: 16px !important;
    line-height: 1.2;
    margin-bottom: 4px;
    color: inherit !important;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-subtitle {
    font-size: 14px !important;
    line-height: 1.2;
    color: inherit !important;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Button Meta Information */
.btn-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.btn-meta .badge {
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-meta .small {
    font-size: 11px;
    opacity: 0.8;
}

/* Text Colors */
.red-text {
    color: #dc3545 !important;
}

.green-text {
    color: #28a745 !important;
}

.orange-text {
    color: #ff9800 !important;
}

.blue-text {
    color: #004ea8 !important;
}

.brown-text {
    color: #8B4513 !important;
}

.gradient-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Margin utilities */
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-button-bar {
        gap: 10px;
        padding: 8px 0;
    }

    .custom-btn {
        padding: 12px !important;
    }

    .btn-icon {
        min-width: 50px !important;
        margin-right: 12px !important;
    }

    .btn-icon i {
        font-size: 16px !important;
    }

    .btn-title {
        font-size: 14px !important;
    }

    .btn-subtitle {
        font-size: 12px !important;
    }

    .btn-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Reset any conflicting styles */
.custom-btn * {
    box-sizing: border-box !important;
}

.custom-btn:focus,
.custom-btn:active,
.custom-btn:visited {
    text-decoration: none !important;
    outline: none !important;
}

/* Ensure proper container alignment */
.nav-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.nav-card {
    width: 100%;
}

.side-navigation {
    width: 100%;
}
