/* Global Custom Styles for TenderMe System - Professional Blue & White Theme */

/* Input styles */
.form-control, .form-select {
    background-color: #ffffff !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #1e3a5f !important;
    border-radius: 8px !important;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #f8fbff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none;
    color: #1e3a5f !important;
}

.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

label.text-muted {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1e3a5f !important;
}

/* Glass panel - clean white */
.glass-panel {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(147, 197, 253, 0.4) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px 0 rgba(30, 58, 138, 0.10) !important;
    padding: 2.5rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.10);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.18);
}

/* Custom Banners & Sliders */
.carousel-item {
    height: 480px;
    min-height: 300px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(15, 30, 75, 0.92) 10%, rgba(15, 30, 75, 0.45) 60%, rgba(15, 30, 75, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Scrollbar customizations */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #dbeafe;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 6px;
    border: 2px solid #dbeafe;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* GroupBox styling */
.group-box {
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    position: relative;
}

.group-box-title {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #1e40af;
    padding: 0 15px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(147, 197, 253, 0.4);
}

.badge-tender {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}

/* Double classification Select styles */
.class-list-box {
    height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(147, 197, 253, 0.4);
    background: rgba(219, 234, 254, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.class-list-item {
    padding: 6px 12px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.class-list-item:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Image Thumbnails and Modals */
.thumbnail-box {
    display: inline-block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.4);
    margin-right: 8px;
    margin-bottom: 8px;
    width: 90px;
    height: 90px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail-box:hover {
    transform: scale(1.05);
}

.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PDF Page specific */
#pdfContent {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 40px !important;
    border-radius: 0 !important;
}

/* Tabs styles */
.nav-tabs .nav-link {
    color: #3b5f8a !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease;
    padding: 12px 20px;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    color: #1d4ed8 !important;
}

.nav-tabs .nav-link.active {
    color: #1d4ed8 !important;
    background-color: transparent !important;
    border-bottom: 2px solid #2563eb !important;
}

/* Table modifications */
.table {
    color: #0f172a !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #1e40af !important;
    color: #ffffff !important;
    border-bottom: 2px solid rgba(147, 197, 253, 0.4) !important;
    font-weight: 700;
}

.table td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(147, 197, 253, 0.2) !important;
    color: #1e3a5f !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(239, 246, 255, 0.8) !important;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.95) !important;
}