@import url("../giapi/jquery/jquery-ui-1.11.14.min.css" );

@import url("../giapi/jtable/highlight.css" );

@import url("../giapi/jtable/jtable_jqueryui.css" );

@import url("../giapi/ol/10.3.1/ol.css" );

@import url("../giapi/ol-layerswitcher/ol-layerswitcher.css" );

@import url("../giapi/css/giapi.css" );

@import url("../giapi/css/portal.css" );

@import url("../css/fonts-min.css" );

@import url("../css/treeview.css" );

@import
	url("../giapi/font-awesome/4.7.0/css/font-awesome.min.css" );

/* Reset html and body margins to ensure headerDiv starts at page edge */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* Create a flex container wrapper for content after header using a pseudo-element approach */
#headerDiv {
	flex-shrink: 0;
}

/* Use CSS to create a row layout for elements after header */
body {
	display: flex;
	flex-direction: column;
}

/* Group paginator, tabs, and map in a horizontal row */
/* Note: These are now inside main-content-wrapper, so this rule may not apply */
#resMapWidget,
#paginator-widget,
#tabs-div {
	display: inline-flex;
	vertical-align: top;
}

#selectedParameter {
	font-weight: bold;
}

#hideMapInputControl.toggle-button {
	width: 28px !important;
	height: 28px !important;
	margin-left: -30px;
	left: -205px;
	margin-top: 57px !important;
	border-radius: 3px;
	padding: 0px !important;
	background: gray
		url(http://api.geodab.eu/docs/assets/img/bbox-selection.png) 0px 0px
		no-repeat !important;
}

#parameterFrame {
	width: 100%;
	height: 95%;
	border: none;
	display: block; /* Prevents unwanted space around the iframe */
	margin: 0 auto; /* Centers the iframe horizontally */
}

#hideMapInputControl.toggle-button-on {
	background: white
		url(http://api.geodab.eu/docs/assets/img/bbox-selection.png) 0px 0px
		no-repeat !important;
}

.highlighted {
	background-color: #0076ff;
}

#controlToggleIcon {
	display: none;
}

#disclaimer-div {
	display: none
}

.layers-control-table-div {
	opacity: 1 !important;
	margin-left: -198px !important;
}

/* Ensure layer switcher and all OpenLayers controls are clickable above tabs/paginator */
.layer-switcher,
.ol-control {
	z-index: 10 !important;
	pointer-events: auto !important;
}

.layer-switcher button,
.ol-control button,
.layer-switcher *,
.ol-control * {
	pointer-events: auto !important;
}

.layer-switcher button,
.ol-control button {
	cursor: pointer !important;
}

.ol-zoomslider {
	right: 10px !important; /* Position it 10px from the right edge */
	left: auto !important; /* Remove the default left positioning */
	top: 100px !important;
}

/* -------------------------------- */
/* header                           */
/*                                  */
.portal-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	background: #f8f9fa;
	border-bottom: 1px solid #c0c0c0;
	width: 100%;
	box-sizing: border-box;
}

.portal-header-left {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
	padding: 0;
	margin: 0;
}

.portal-header-right {
	display: flex;
	align-items: center;
	gap: 15px;
	justify-content: flex-end;
	flex: 1;
	padding: 0;
	margin: 0;
}

.portal-header-logo-left,
.portal-header-logo-right {
	max-height: 90px;
	height: auto;
	max-width: 1000px;
	width: auto;
	object-fit: contain;
	padding: 0;
	margin: 0;
}

.portal-header-title-left {
	font-size: 1.5em;
	font-weight: bold;
	color: #2c3e50;
	flex: 1;
	min-width: 0;
	word-wrap: break-word;
	white-space: pre-line;
}

.portal-header-title-right {
	font-size: 0.9em;
	color: #555;
	text-align: right;
	flex: 1;
	min-width: 0;
	word-wrap: break-word;
	max-width: 100%;
	white-space: pre-line;
}

#headerDiv {
	border: 1px solid #c0c0c0;
	background: #c0c0c0;
	margin-bottom: 0px;
	margin-left: 0px;
	position: relative;
	flex-shrink: 0;
}

#logoDiv {
	vertical-align: top;
	display: inline-block;
}

#what-div {
	display: inline-block;
	vertical-align: top;
}

#from-div {
	display: inline-block;
	margin-left: -10px;
	vertical-align: top;
}

#to-div {
	display: inline-block;
	margin-left: -10px;
	vertical-align: top;
}

#where-div {
	display: inline-block;
	margin-left: -10px;
	margin-right: 8px;
	vertical-align: top;
	background-color: #c0c0c0; /* Match headerDiv background */
}

/* Style the spatial extent label/button to match headerDiv background */
#whereTableCaption,
.cnst-widget-where-input-table-ol-caption {
	background-color: #c0c0c0 !important; /* Match headerDiv background */
}

#adv-search-div {
	margin-top: 2px;
	margin-left: 10px;
	display: inline-block;
	vertical-align: top;
	position: relative;
}

#advConstDiv {
	z-index: 1000 !important;
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	margin-top: 5px !important;
	min-width: 250px;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border: 1px solid #ddd;
	border-radius: 4px;
}

#search-button {
	display: inline-block;
	vertical-align: top;
}

#hide-results-button {
	display: inline-block;
	margin-top: 7px;
}

/* -------------------------------- */
/* tabs                             */
/*                                  */
#tabs-ul {
	white-space: nowrap;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	margin: 0;
	padding: 0;
}

#tabs-ul li {
	flex-shrink: 0;
	white-space: nowrap;
	margin-left: 0;
}

#tabs-ul li:first-child {
	margin-left: 0;
}

/* Remove inline margin-left from results tab link */
#results-tab-link {
	margin-left: 0 !important;
}

#left-sidebar {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 40%;
	min-width: 0;
	max-width: 40%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
	/* Only capture events within sidebar bounds */
	pointer-events: auto;
	box-sizing: border-box;
	/* Ensure it doesn't extend beyond its visual bounds */
	contain: layout style;
}

#tabs-div {
	position: relative;
	z-index: 1;
	border: none;
	background: transparent;
	flex-shrink: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

.ui-widget-header[role="tablist"] {
	border: 1px solid #999999;
	background: #999999;
	white-space: nowrap;
	overflow: visible;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0;
	margin: 0;
}

.ui-widget-header[role="tablist"] ul {
	display: flex;
	justify-content: center;
	width: 100%;
}

.ui-widget-header[role="tablist"] li {
	display: inline-block;
	white-space: nowrap;
	flex-shrink: 0;
}

/* -------------------------------- */
/* results tab                      */
/*                                  */
#results-tab {
	flex: 1;
	min-height: 0;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

/* Remove default jQuery UI tabs panel spacing */
.ui-tabs-panel {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible;
}

#tabs-div .ui-tabs-panel {
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible;
	flex: 1;
	min-height: 0;
}

/* Only results tab should scroll: constrain height and show scrollbar for overflow */
#tabs-div .ui-tabs-panel#results-tab {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	min-height: 0;
}

/* Allow results tab content to overflow so the panel scrolls (do not force overflow: visible on direct children) */
#results-tab > * {
	overflow-x: hidden;
}

#results-tab .resultset-layout-ul,
#results-tab .resultset-layout-table-div {
	overflow: visible;
}

.series-browser-widget-table {
	position: absolute;
	border: 1px solid #c0c0c0;
	background: rgb(221, 221, 221);
}

#paginator-widget {
	z-index: 1;
	position: relative;
	text-align: center;
	display: block;
	background: #c0c0c0;
	padding: 0 0 8px 0;
	margin: 0;
	flex-shrink: 0;
	width: 100%;
}

.paginator-widget-results-label {
	font-size: 1.0em;
}

.paginator-widget-results-label .login-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    vertical-align: middle;
}

.paginator-widget-results-label .login-button:hover {
    background-color: #34495e;
}

.paginator-widget-button {
	padding: 3px;
	border-radius: 0px;
	height: 20px;
	font-size: 1.4em;
}

.paginator-widget-button-first {
	padding-left: 8px;
	padding-right: 8px;
}

.paginator-widget-button-last {
	padding-left: 8px;
	padding-right: 8px;
}

.paginator-widget-button-prev {
	padding-right: 7px;
}

.paginator-widget-button-next {
	padding-left: 7px;
}

.resultset-layout-table-div {
	padding-right: 0px !important;
	overflow: visible !important;
	max-height: none !important;
}

/* Remove scrollbar from resultset layout table div - only results tab should scroll */
#results-tab .resultset-layout-table-div {
	overflow: visible !important;
	max-height: none !important;
}

/* -------------------------------- */
/* sources tab                      */
/* Override .ui-tabs-panel overflow so sources panel has no scrollbar and stays within screen */
#tabs-div .ui-tabs-panel#sources-tab {
	overflow: hidden !important;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

#sources-tab {
	overflow: hidden !important;
	box-shadow: none;
	background: rgb(221, 221, 221);
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* SourcesWidget creates an inner div with inline overflow-y: scroll and fixed height - override to remove scrollbar and constrain to panel */
#sources-tab [style*="overflow-y"] {
	overflow: hidden !important;
	max-height: 100% !important;
	height: 100% !important;
}

/* Constrain sources tab content wrapper so it doesn't extend off screen */
#sources-tab > div {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

#sources-tab > div table#wrapSourcesWidgetTable {
	height: 100%;
	min-height: 0;
}

#sources-tab > div table#wrapSourcesWidgetTable tbody tr:last-child td {
	height: 100%;
	vertical-align: top;
}

#sources-tab > div table#wrapSourcesWidgetTable tbody tr:last-child td > div {
	overflow: hidden !important;
	max-height: 100% !important;
	height: 100% !important;
}

.sources-widget {
	box-shadow: none;
	background: transparent;
}

/* -------------------------------- */
/* filters tab                      */
/*                                  */
#filters-tab {
	overflow-y: auto !important;
	overflow-x: hidden !important;
	max-height: 100%;
	box-sizing: border-box;
}

/* Fix white space issue when only one item is selected in filter sections */
#filters-tab [widget="tf"] div.jtable-main-container {
	height: auto !important;
	min-height: auto !important;
}

#filters-tab [widget="tf"] div.jtable-main-container table.jtable {
	height: auto !important;
}

#filters-tab [widget="tf"] div.jtable-main-container table.jtable tbody {
	height: auto !important;
}

/* -------------------------------- */
/* browse  tab                      */
/*                                  */
#browse-tab {
	overflow-y: auto;
	background: rgb(221, 221, 221);
	font-size: 11px;
}

#browse-tree-div {
	max-height: 455px;
	overflow: auto;
}

/* -------------------------------- */
/* map                              */
/*                                  */
/* Main content wrapper created by JavaScript */
#main-content-wrapper {
	display: flex;
	flex-direction: row;
	flex: 1;
	min-height: 0;
	width: 100%;
	position: relative;
	z-index: 0;
}

#headerDiv {
	flex-shrink: 0;
}

#resMapWidget {
	position: relative;
	flex: 1;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
	z-index: 0;
	pointer-events: auto !important;
	touch-action: none;
}

/* Force all map children to be interactive */
#resMapWidget .map-widget-div,
#resMapWidget .ol-viewport,
#resMapWidget canvas {
	pointer-events: auto !important;
	touch-action: none;
}

.map-widget-div {
	background: transparent;
	padding: 0px;
	border-radius: 0px;
	width: 100% !important;
	height: 100% !important;
	box-sizing: border-box;
	position: relative;
	z-index: inherit;
	pointer-events: auto !important;
}

.map-widget-div .ol-fullscreen-map {
	width: 100% !important;
	height: 100% !important;
	box-sizing: border-box;
	position: relative;
	z-index: inherit;
	pointer-events: auto !important;
}

/* Ensure OpenLayers viewport and canvas are interactive */
/* The overlay container should let events pass through */
#resMapWidget .ol-overlaycontainer-stopevent {
	pointer-events: none !important;
}

/* But the actual map canvas and viewport must be interactive */
#resMapWidget .ol-viewport,
#resMapWidget .ol-viewport canvas {
	pointer-events: auto !important;
}

/* Map widget container and its direct children */
#resMapWidget .map-widget-div,
#resMapWidget .map-widget-div > * {
	pointer-events: auto !important;
}

/* -------------------------------- */
/* beta badge                       */
/*                                  */
.beta-badge {
	position: absolute;
	right: 16px;
	bottom: 16px;
	z-index: 20;
	background-color: #e74c3c;
	color: #fff;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.beta-badge i {
	font-size: 12px;
}

.beta-badge-tooltip {
	position: absolute;
	right: 0;
	bottom: 40px;
	max-width: 260px;
	background-color: #2c3e50;
	color: #fff;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	z-index: 21;
}

.beta-badge-tooltip::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 100%;
	border-width: 6px;
	border-style: solid;
	border-color: #2c3e50 transparent transparent transparent;
}

#stationInfo {
	position: relative;
	z-index: 10;
}

/* Ensure spatial extent widget dialog appears above results tab and all other content */
/* jQuery UI dialogs are appended to body, so they need very high z-index */
.ui-dialog,
.ui-dialog-wrapper {
	z-index: 10000 !important;
	position: fixed !important;
}

.ui-widget-overlay {
	z-index: 9999 !important;
	position: fixed !important;
}

/* Ensure all dialog content is above */
.ui-dialog * {
	position: relative;
	z-index: inherit;
}

/* Ensure discover dialog (searching popup) is properly formatted */
#discoverDialog {
	padding: 10px !important;
	overflow: visible !important;
	background: #f8f8f8 !important;
}

/* Ensure dialog wrapper and content have proper background */
.ui-dialog[aria-describedby="discoverDialog"],
.ui-dialog[aria-describedby="discoverDialog"] .ui-dialog-content {
	background: #f8f8f8 !important;
	padding: 10px !important;
}

/* For no-titlebar dialogs, ensure background covers everything */
.ui-dialog.no-titlebar .ui-dialog-content {
	background: #f8f8f8 !important;
	padding: 10px !important;
}

#discoverDialog #progressBar {
	margin-bottom: 10px;
}

#discoverDialog #status-label {
	display: block !important;
	visibility: visible !important;
	color: black !important;
	font-weight: bold !important;
	font-size: 11px !important;
	margin-top: 5px;
	padding: 0;
	line-height: normal;
}

/* -------------------------------- */
/* constraints widget               */
/*                                  */
.cnst-widget-where-input-control-div.resultset-layout {
	display: none;
}

.cnst-widget-where-input-control-button {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* -------------------------------- */
/* ui nodes                         */
/*    								*/
.no-overview-div {
	background: #ddd;
}

.common-ui-node-report-div {
	background: #ECEFF1;
}

.common-ui-node-report-div:hover {
	box-shadow: none;
	background: white;
}

.common-ui-node-report-div-hover {
	box-shadow: none;
	background: #ECEFF1 !important
}

.common-ui-node-button-div .toggle-button {
	font-size: 12px;
	padding: 2px;
}

.common-ui-node-button-div .font-awesome-button {
	font-size: 12px;
	padding: 3px;
}

.common-ui-node-browse-collection-icon {
	margin-left: -21px;
	font-size: 1.3em;
}

.common-ui-node-browse-collection-button {
	width: 25px;
	height: 25px;
}

.common-ui-node-collection-check {
	font-size: 0.7em;
}

.common-ui-node-report-content-table-right {
	font-size: 11px;
}

.common-ui-node-report-content-table-left {
	font-size: 11px;
}

.common-ui-node-report-content-table-left-td {
	font-size: 11px;
}

.common-ui-node-report-content-table-right-td {
	font-size: 11px;
}

.common-ui-node-report-title {
	font-size: 11px;
}

.common-ui-node-report-desc {
	font-size: 11px !important
}

.common-ui-node-time-label {
	font-size: 11px;
}

.gbif-ui-node-occ-button-div div[class*='button'] {
	padding-left: 3px !important;
	padding-top: 3px !important;
	padding-bottom: 3px !important;
	padding-right: 10px !important;
}

.gbif-ui-node-occ-button-div label {
	font-size: 11px;
}

.gbif-ui-node-filters-button-div label {
	font-size: 11px;
}

.gbif-ui-node-filters-button-div div[class*='button'] {
	padding: 4px !important;
	padding-right: 8px !important;
}

.gbif-ui-node-filters-button-div div[class*='toggle-button'] i {
	font-size: 17px;
}

.gbif-ui-node-filters-button-div div[class*='toggle-button'] {
	width: 170px !important
}

.gbif-ui-node-occurrence-count-div {
	padding: 4px;
}

.report-desc {
	font-size: 12px;
}

.gbif-ui-node-occurrence-count-div {
	width: 200px;
	font-size: 12px;
}

.classification-table {
	font-size: 11px;
}

/* -------------------------------- */
/* jquery ui                        */
/*                                  */
#ui-datepicker-div {
	z-index: 99 !important
}

.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button
	{
	font-size: 95%;
}

/* Login component styles */
.login-container {
    position: absolute;
    top: 6px;
    right: 16px;
    transform: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-button.lang-button {
    padding: 8px 10px;
    min-width: 44px;
    text-align: center;
}

.login-button {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #34495e;
}

.login-button:disabled {
    background-color: #95a5a6;
    cursor: default;
}

#logoutBtn {
    background-color: #e74c3c;
}

#logoutBtn:hover {
    background-color: #c0392b;
}

.login-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    /* Keep modal fully inside the viewport */
    width: 420px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    box-sizing: border-box;
}

.login-modal .login-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #2c3e50;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}

.login-modal .login-modal-close:hover {
    background: rgba(44, 62, 80, 0.08);
    border-radius: 4px;
}

.login-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-right: 34px; /* space for the close button */
}

.login-info {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.4;
}

.login-modal input {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-modal button {
    width: 100%;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

.login-modal button:hover {
    background-color: #34495e;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Bulk download dialog styles */
.bulk-download-dialog {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.bulk-download-dialog .ui-dialog-titlebar {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px 4px 0 0;
    padding: 10px;
}

.bulk-download-dialog .ui-dialog-content {
    padding: 20px;
    line-height: 1.5;
    color: #2c3e50;
}

.bulk-download-dialog .ui-dialog-buttonpane {
    border-top: 1px solid #eee;
    padding: 15px;
    margin-top: 0;
}

.bulk-download-dialog .ui-dialog-buttonpane button {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.bulk-download-dialog .ui-dialog-buttonpane button.login-button {
    background-color: #2c3e50;
    color: white;
}

.bulk-download-dialog .ui-dialog-buttonpane button.login-button:hover {
    background-color: #34495e;
}

.bulk-download-dialog .ui-dialog-buttonpane button:not(.login-button) {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.bulk-download-dialog .ui-dialog-buttonpane button:not(.login-button):hover {
    background-color: #bdc3c7;
}

/* User menu styles */
.user-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    display: none;
    min-width: 200px;
}

.menu-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #2c3e50;
    transition: background-color 0.2s;
}

.menu-button:hover {
    background-color: #f5f6f7;
}

/* Status table styles */
.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.status-table th,
.status-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.status-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.status-table tr:hover {
    background-color: #f5f6f7;
}

.status-table a {
    color: #3498db;
    text-decoration: none;
}

.status-table a:hover {
    text-decoration: underline;
}

/* URL container styles */
.url-container {
    display: flex;
    align-items: center;
    max-width: 400px;
}

.url-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    background-color: #f8f9fa;
    width: calc(100% - 35px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-button {
    margin-left: 5px;
    padding: 4px 8px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #34495e;
}

.copy-button i {
    font-size: 12px;
}

/* Status table column widths */
.status-table td:nth-child(1) {
    min-width: 300px; /* Operation ID column */
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-table td:nth-child(2) {
    min-width: 100px; /* Status column */
}

.status-table td:nth-child(3) {
    min-width: 160px; /* Timestamp column */
    white-space: nowrap;
}

.status-table td:nth-child(4) {
    min-width: 80px; /* Download column */
    text-align: center;
}

.status-table td:last-child {
    min-width: 400px; /* URL column */
}

.status-table th {
    white-space: nowrap;
    padding: 10px 15px;
}

.status-table td {
    padding: 10px 15px;
}

/* Add tooltips for truncated operation IDs */
.status-table td:first-child {
    position: relative;
}

.status-table td:first-child:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    white-space: normal;
    max-width: 300px;
}

/* Refresh button styles */
.refresh-button {
    padding: 8px 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.refresh-button:hover {
    background-color: #34495e;
}

.refresh-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.refresh-button i {
    margin-right: 5px;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}