/* RBS Portal Global Styles */

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Card Styles */
.card {
    border-radius: 15px;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Remove any potential dark borders or shadows */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%) !important;
    padding: 1.5rem 1rem;
}

/* Form Styles */
.form-control,
.input-group-text {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e1e5ea;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
    border-color: #3a7bd5;
}

.input-group-text {
    background-color: #f8f9fa;
    color: #3a7bd5;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
}

/* Custom Components */
.password-toggle {
    cursor: pointer;
    color: #6c757d;
}

.logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.footer-text {
    color: #6c757d;
    margin-top: 20px;
}

/* DataTables Custom Styling */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: white !important;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(58, 123, 213, 0.1);
    border: 1px solid #e1e5ea;
}

/* Dashboard cards */
.dashboard-card {
    height: 100%;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Original color classes kept for backward compatibility but border removed */
.dashboard-card-blue {
    /* border-left-color removed */
}

.dashboard-card-green {
    /* border-left-color removed */
}

.dashboard-card-yellow {
    /* border-left-color removed */
}

.dashboard-card-red {
    /* border-left-color removed */
}

/* Dashboard-specific styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar {
    margin-bottom: 30px;
}

.search-input {
    max-width: 400px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.dashboard-highlight {
    border: 2px solid #007bff;
    background-color: #e7f1ff;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Dashboard menu cards */
.menu-card {
    display: none;
}

.menu-card.show {
    display: block;
}

/* Category badges */
.category-badge {
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.category-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.category-badge.active {
    box-shadow: 0 0 0 2px #000;
}

/* Favorites section */
.favorites-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.favorites-section h5 {
    color: #dc3545;
    margin-bottom: 15px;
}

.favorite-item {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* Related items indicator */
.related-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Category section */
.category-section {
    margin-bottom: 20px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Keyboard nav focus styles */
.card:focus-within {
    outline: 3px solid #007bff;
}

.card a:focus {
    box-shadow: none;
    outline: none;
}