/* File upload styling */
.file-upload-container {
    margin-bottom: 1rem;
    position: relative;
}

.file-upload-area {
    border: 1px dashed #ced4da;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.file-upload-area:hover {
    border-color: #6c757d;
    background-color: #e9ecef;
}

.file-upload-area.dragover {
    border-color: #007bff;
    background-color: rgb(0 123 255 / 5%);
}

.file-upload-area.has-files {
    border-color: #28a745;
    background-color: rgb(40 167 69 / 5%);
}

.file-upload-area i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0%;
    cursor: pointer;
    z-index: -1;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.file-item i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.file-item .file-name {
    flex-grow: 1;
    margin-right: 0.5rem;
}

.file-item .file-size {
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 50px;
    height: 50px;
}

.file-item .remove-file:hover {
    color: #bd2130;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 50%);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    border-radius: 0;
    max-width: 600px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0%; transform: translateY(-20px);}
    to {opacity: 100%; transform: translateY(0);}
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    cursor: pointer;
}

.close-modal:hover {
    color: #212529;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.preview-section { /* Often used in modals */
    margin-bottom: 1.5rem;
}

.preview-section h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

#preview-amount { /* Specific ID, but relates to preview in modal */
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

/* Button Variations */
.btn-primary {
    background-color: #000;
    color: white;
    padding: 1rem 2rem!important;
    border: 1px solid black!important;
    cursor: pointer!important;
}

.btn-primary:hover {
    background-color: #000;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82000;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-outline {
    background-color: transparent!important;
    border: 1px solid #ddd!important;
    color: black!important;
    pointer-events: all!important;
    /* padding: 0.5rem 1rem; */
    border-radius: 0!important;
    text-decoration: none!important;
    transition: all 0.2s!important;
}

.btn-outline:hover {
    background-color: black!important;
    color: white!important;
    border-color: black!important;
}

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Specific Status Badges (extending from dashboard or base) */
.status-draft {
    background-color: #e9ecef;
    color: #495057;
}

.status-active, .status-open { /* Combined .status-active and .status-open */
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-awarded {
    background-color: #cce5ff;
    color: #004085;
}

.status-cancelled { /* From line 2207 */
    background: #6c757d; 
    color: #fff; 
}


/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #212529;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0%;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #212529 transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0;
    justify-content: center;
    margin-top: 1.5rem;
}

.pagination li {
    margin: 0 0.25rem;
}

.pagination a {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #000;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.pagination a:hover {
    z-index: 2;
    color: #0056b3;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .active a {
    z-index: 3;
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.pagination .disabled a {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Section Footer */
.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Empty State (General) */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #000;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Improved Multi-select Pills */
.pill-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pill {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover {
    background-color: #e9ecef;
}

.pill.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.pill span {
    font-size: 0.9rem;
}

/* Make the pill selector show error state */
.pill-selector.is-invalid {
    border: 1px solid #dc3545;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

/* For the categories/types display on cards */
.pill-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 90%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* .loading-spinner is in dashboard.css, this is for the icon inside overlay */
.loading-overlay .loading-spinner i {
    font-size: 3rem;
    color: #000;
    animation: spin 1s linear infinite; /* Ensure spin animation is available */
}

.loading-message {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    max-width: 80%;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb-nav a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    margin: 0 0.5rem;
    color: #adb5bd;
}

.breadcrumb-nav .current-page {
    color: #000;
    font-weight: 500;
}

/* Avatar Styling */
.avatar-section {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.avatar-container, #vendor-avatar-container, #account-avatar-container { /* Added #account-avatar-container */
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
    cursor: pointer;
    margin-right: 1rem;
    border: 1px solid #e0e0e0;
}

.vendor-avatar, .avatar-container img /* Assuming .avatar-container might hold an img */ {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay, #vendor-avatar-overlay, #account-avatar-overlay { /* Added #account-avatar-overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    border-radius: 50%;
}

.avatar-container:hover .avatar-overlay,
#vendor-avatar-container:hover #vendor-avatar-overlay,
#account-avatar-container:hover #account-avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.avatar-overlay span {
    font-size: 14px;
}

.vendor-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #aaa;
    background-color: #ccc; /* from original */
}

.vendor-image-placeholder span { /* from original */
    font-size: 2rem;
    font-weight: 500;
    color: #666;
}

/* Responsive adjustments for pills */
@media (max-width: 768px) {
    .pill-selector {
        gap: 8px;
    }

    .pill-option { /* Assuming .pill-option is similar to .pill */
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@keyframes spin { /* Ensure spin animation is defined if not in base/dashboard */
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.object-position-top {
    object-position: top;
} 