/* Custom styles for BREIM Global Financial API Platform */

/* Global background styles */
body {
    background-color: #6495ED !important; /* Light Royal Blue */
    color: #000000 !important; /* Force black text for readability */
}

/* Override Bootstrap dark theme container color */
.container {
    background-color: #6495ED !important; /* Light Royal Blue */
}

.card {
    background-color: #6495ED !important; /* Light Royal Blue */
}

/* Improve text visibility */
.btn-outline-primary, .btn-outline-success, .btn-outline-info, .btn-outline-danger {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.btn-outline-primary:hover, .btn-outline-success:hover, .btn-outline-info:hover, .btn-outline-danger:hover {
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Ensure text is readable in cards */
.card-title, .card-text {
    color: #000000 !important;
}

/* Fix any other text contrast issues */
p, h1, h2, h3, h4, h5, h6, .text-muted {
    color: #000000 !important;
}

.dashboard-card {
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card {
    border-radius: 10px;
    overflow: hidden;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.dashboard-chart {
    min-height: 300px;
}

.api-key-code {
    font-family: monospace;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

.toggle-password {
    cursor: pointer;
}

.dropdown-menu .dropdown-header {
    color: #adb5bd;
}

.card-header-tabs {
    margin-right: -1rem;
    margin-bottom: -0.5rem;
    margin-left: -1rem;
    border-bottom: 0;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
    border-color: #495057 #495057 #343a40;
}

.nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: #343a40;
    border-color: #495057 #495057 #343a40;
}

/* Transaction timeline styles */
.timeline {
    border-left: 3px solid #495057;
    padding-left: 20px;
    position: relative;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -26px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #495057;
    border: 3px solid #343a40;
}

.timeline-item.success:before {
    background-color: #28a745;
}

.timeline-item.warning:before {
    background-color: #ffc107;
}

.timeline-item.danger:before {
    background-color: #dc3545;
}

.timeline-item.info:before {
    background-color: #17a2b8;
}

.timeline-date {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* API Documentation Styles */
.api-endpoint {
    border-left: 4px solid #6c757d;
    padding-left: 15px;
    margin-bottom: 30px;
}

.api-endpoint.get {
    border-color: #17a2b8;
}

.api-endpoint.post {
    border-color: #28a745;
}

.api-endpoint.put {
    border-color: #ffc107;
}

.api-endpoint.delete {
    border-color: #dc3545;
}

.http-method {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.http-method.get {
    background-color: #17a2b8;
}

.http-method.post {
    background-color: #28a745;
}

.http-method.put {
    background-color: #ffc107;
    color: #343a40;
}

.http-method.delete {
    background-color: #dc3545;
}

.endpoint-url {
    font-family: monospace;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

pre.code-block {
    background-color: #212529;
    color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.required-param {
    color: #dc3545;
}

.optional-param {
    color: #6c757d;
}

.param-table th,
.param-table td {
    padding: 12px 15px;
}

.api-section {
    margin-bottom: 40px;
}

/* Dashboard wizard steps */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    border-bottom: 3px solid transparent;
}

.wizard-step.active {
    opacity: 1;
    border-bottom-color: #0d6efd;
}

.wizard-step.completed {
    opacity: 0.8;
    border-bottom-color: #28a745;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.wizard-step.active .step-number {
    background-color: #0d6efd;
}

.wizard-step.completed .step-number {
    background-color: #28a745;
}

.step-title {
    font-weight: 500;
}

/* Custom status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-indicator.success {
    background-color: #28a745;
}

.status-indicator.warning {
    background-color: #ffc107;
}

.status-indicator.danger {
    background-color: #dc3545;
}

.status-indicator.info {
    background-color: #17a2b8;
}

.status-indicator.offline {
    background-color: #6c757d;
}

/* Table styles */
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.clickable-row {
    cursor: pointer;
}

.table-sm td, .table-sm th {
    padding: 0.5rem;
}

/* Search highlight */
.highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 2px;
    border-radius: 2px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

/* File upload */
.custom-file-drop {
    border: 2px dashed #6c757d;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.1);
}

.custom-file-drop:hover, .custom-file-drop.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.custom-file-drop i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Animation keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Pagination custom styling */
.page-link {
    color: #ffffff;
    background-color: #343a40;
    border-color: #495057;
}

.page-link:hover {
    color: #ffffff;
    background-color: #495057;
    border-color: #6c757d;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #343a40;
    border-color: #495057;
}

/* Global Server Styles */
.global-server-header {
    background: linear-gradient(135deg, #3a5ecc 0%, #4169E1 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.global-server-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.global-server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.global-server-card .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    padding: 15px 20px;
}

.global-server-card .card-body {
    padding: 20px;
}

.transaction-result {
    border-left: 4px solid #0d6efd;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 5px;
}

.transaction-details {
    font-family: monospace;
    font-size: 0.9rem;
}

.swift-id {
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.badge-swift {
    background-color: #4169E1;
    color: white;
}

.badge-sepa {
    background-color: #fd7e14;
    color: white;
}

.badge-crypto {
    background-color: #6f42c1;
    color: white;
}

.network-status {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.05);
}

.network-status .status-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.network-status .status-details {
    flex: 1;
}

.network-status .status-action {
    white-space: nowrap;
}

.network-status.online {
    border-left: 4px solid #28a745;
}

.network-status.offline {
    border-left: 4px solid #dc3545;
}

.network-status.warning {
    border-left: 4px solid #ffc107;
}