/* Base styles */
:root {
    --primary-color: #0077b5;
    --secondary-color: #44c8e8;
    --accent-color: #006398;
    --light-accent: #e3f2fd;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --dark-text: #333333;
    --medium-text: #505a64;
    --light-text: #666666;
    --border-color: #e0e4e8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s ease;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header styles */
header {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    gap: 30px;
}

header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    text-align: left;
    flex-shrink: 0;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

/* User menu in header */
.user-menu {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
}

.logout-btn {
    color: var(--white);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
}

.logout-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Login page styles */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 30px 20px;
}

.login-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid #e0e4e8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    padding: 40px 30px 30px;
    background-color: white;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--secondary-color);
}

.login-logo {
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.1));
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--primary-color);
}

.login-header p {
    margin: 0;
    font-size: 15px;
    color: var(--medium-text);
}

.login-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.login-message {
    padding: 18px;
    background-color: var(--light-accent);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.login-message p {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: var(--dark-text);
}

.login-message p:last-child {
    margin-bottom: 0;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--white);
    color: #444;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 14px 0;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-login-btn:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Unauthorized page */
.unauthorized-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 30px 20px;
    text-align: center;
}

.unauthorized-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    padding: 35px;
}

.unauthorized-icon {
    font-size: 52px;
    color: #f44336;
    margin-bottom: 20px;
}

.unauthorized-title {
    font-size: 26px;
    color: #f44336;
    margin-bottom: 20px;
    font-weight: 500;
}

.domain-required {
    font-weight: bold;
    color: var(--primary-color);
}

.back-to-login {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.back-to-login:hover {
    background: linear-gradient(
        135deg,
        var(--accent-color) 0%,
        var(--primary-color) 100%
    );
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Improved Filter Styles */
.filters {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.filters h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-text);
    font-size: 20px;
    font-weight: 500;
    border-bottom: 2px solid var(--light-accent);
    padding-bottom: 10px;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.filter-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #fafbfc;
    transition: var(--transition);
}

.filter-section:hover {
    box-shadow: var(--shadow-sm);
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-group.range-group {
    flex: 2;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 15px;
    transition: var(--transition);
}

.range-inputs span {
    color: var(--light-text);
    font-size: 14px;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 12px;
    margin-top: 10px;
}

label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
    font-size: 14px;
}

select,
input {
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-size: 15px;
    background-color: var(--white);
    color: var(--dark-text);
    transition: var(--transition);
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Enhanced buttons */
button {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

button.primary {
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

button.primary:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

button.primary:hover:after {
    transform: translateX(0);
}

button.primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 119, 181, 0.25);
}

button.secondary {
    background-color: #f1f3f5;
    color: var(--medium-text);
    border: 1px solid var(--border-color);
}

button.secondary:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Active Filters */
.active-filters-container {
    margin-bottom: 25px;
}

.active-filters-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-weight: 500;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 36px;
}

.no-filters-message {
    color: #999;
    font-style: italic;
    font-size: 14px;
    padding: 8px 0;
}

.filter-tag {
    background-color: var(--light-accent);
    border: 1px solid #bbdefb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    transition: var(--transition);
}

.filter-tag:hover {
    background-color: #bbdefb;
}

.filter-tag-remove {
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 119, 181, 0.1);
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.filter-tag-remove:hover {
    background-color: rgba(0, 119, 181, 0.2);
}

/* Improved Experiment Results */
.results h2 {
    margin-bottom: 20px;
    color: var(--dark-text);
    border-bottom: 2px solid var(--light-accent);
    padding-bottom: 10px;
    font-weight: 500;
    font-size: 20px;
}

.experiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

/* NEW PROFESSIONAL EXPERIMENT CARD DESIGN */
/* CLEAN PROFESSIONAL EXPERIMENT CARD DESIGN */
.experiment-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.experiment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.experiment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.experiment-card-header:hover {
    background-color: #f1f5f9;
}

.experiment-card-header.expanded {
    background-color: #e3f2fd;
    border-bottom-color: var(--primary-color);
}

.experiment-primary-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    pointer-events: none; /* Let clicks pass through to header */
    min-width: 0; /* Allow flex item to shrink below content size */
    overflow: hidden;
}

.folder-name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0;
    letter-spacing: 0.2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}

.experiment-metadata {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.experiment-date {
    font-size: 0.8em;
    color: var(--light-text);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.experiment-date::before {
    content: "📅";
    font-size: 0.85em;
}

.metadata-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75em;
    color: var(--light-text);
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.metadata-item:hover {
    background-color: #e8eaed;
    border-color: #dadce0;
}

.metadata-icon {
    font-size: 1.1em;
    line-height: 1;
    display: flex;
    align-items: center;
}

.metadata-value {
    font-weight: 500;
    color: var(--dark-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.experiment-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Download button - prevent click propagation */
.experiment-actions .download-btn {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    font-size: 14px;
}

.experiment-actions .download-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Delete button */
.experiment-actions .delete-btn {
    background-color: #e8eaed;
    border: 1px solid #dadce0;
    color: #5f6368;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    font-size: 14px;
}

.experiment-actions .delete-btn:hover {
    background-color: #fce8e6;
    border-color: #f28b82;
    color: #d93025;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.experiment-actions .delete-btn.deleting {
    background-color: #999;
    pointer-events: none;
}

/* Expand/Collapse indicator - now just the icon */
.toggle-details-btn {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    pointer-events: none; /* Let clicks go to header */
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2em;
    font-weight: bold;
}

.toggle-details-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.experiment-details {
    padding: 0;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.experiment-details[style*="display: block"] {
    padding: 18px 20px;
    max-height: 3000px;
    opacity: 1;
}

.experiment-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-bottom: 18px;
    padding: 14px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.85em;
}

.info-value {
    color: #334155;
    font-weight: 500;
    font-size: 0.9em;
}

.experiment-details h4 {
    margin: 24px 0 16px 0;
    color: #1e293b;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experiment-details h4::before {
    content: "▸";
    color: var(--primary-color);
    font-size: 1.2em;
}

.experiment-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    margin-bottom: 24px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9em;
}

.info-value {
    color: #334155;
    font-weight: 500;
}

.experiment-details h4 {
    margin: 24px 0 16px 0;
    color: #1e293b;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.experiment-details h4::before {
    content: "▸";
    color: var(--primary-color);
    font-size: 1.2em;
}

/* Enhanced download button styles */
.download-btn {
    background-color: var(--primary-color);
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-size: 18px;
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.download-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.download-btn.downloading {
    background-color: #f59e0b;
    color: var(--white);
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-icon {
    font-weight: bold;
}

.run-download-btn {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

/* Run list improvements */
/* Run list with scrollbar */
.run-list {
    padding-left: 0;
    list-style: none;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Custom scrollbar for webkit browsers */
.run-list::-webkit-scrollbar {
    width: 8px;
}

.run-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.run-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

.run-list::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.run-item {
    background-color: #f8fafc;
    padding: 16px;
    margin-bottom: 14px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
}

.run-item:hover {
    background-color: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

.run-item:last-child {
    margin-bottom: 0;
}

.run-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.run-header {
    font-weight: 500;
    color: var(--dark-text);
}

.run-actions {
    display: flex;
    gap: 8px;
}

.toggle-files-btn {
    background-color: var(--light-accent);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 14px;
    padding: 0;
    position: relative;
}

.toggle-files-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.toggle-files-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.toggle-files-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.run-item-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    font-size: 14px;
}

.run-label {
    font-weight: 500;
    color: var(--light-text);
}

/* File Pairs styling improvements */
.file-pairs-container {
    margin-top: 14px;
    background-color: #f1f5f9;
    border-radius: 6px;
    padding: 14px;
    border: 1px solid var(--border-color);
}

.file-pairs-container h5 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--dark-text);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    font-weight: 500;
}

.file-pairs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #bbdefb var(--light-accent);
}

.file-pairs-list::-webkit-scrollbar {
    width: 6px;
}

.file-pairs-list::-webkit-scrollbar-track {
    background: var(--light-accent);
    border-radius: 3px;
}

.file-pairs-list::-webkit-scrollbar-thumb {
    background-color: #bbdefb;
    border-radius: 3px;
}

.file-pair-item {
    background-color: var(--white);
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.file-pair-item:hover {
    box-shadow: var(--shadow-sm);
}

.file-pair-header {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-text);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-pair-download-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.file-pair-download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.file-pair-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

/* Improved file name display */
.file-item {
    display: flex;
    align-items: flex-start;
}

.file-label {
    font-weight: 500;
    color: var(--light-text);
    min-width: 80px;
}

.file-name {
    word-break: break-all;
    font-family: "Consolas", monospace;
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-files {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 12px;
}

#loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: var(--medium-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#loading-message::before {
    content: "⏳";
    font-size: 48px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 16px;
    color: var(--light-text);
    background-color: #f1f5f9;
    border-radius: var(--border-radius);
    border: 1px dashed #ddd;
}

/* Upload Form Styles */
.upload-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    padding: 25px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    background-color: #fafbfc;
    transition: var(--transition);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.wide {
    flex: 100%;
}

.gas-segment {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 15px;
    padding: 15px;
}

.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Upload link styling */
.upload-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.upload-link {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.upload-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.upload-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Back link styling */
.back-link-container {
    margin-bottom: 20px;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px;
}

.back-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* File input styling */
input[type="file"] {
    background-color: #f5f5f5;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 10px;
    width: 100%;
}

input[type="file"]:hover {
    background-color: #f0f0f0;
}

/* Remove segment button */
.remove-segment {
    margin-top: 10px;
    background-color: #f1f3f5;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.remove-segment:hover {
    background-color: #dc3545;
    color: white;
}

/* Message styles */
.message-container {
    margin-bottom: 20px;
}

.message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    position: relative;
    padding-right: 35px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.message-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        min-width: unset;
    }

    .experiment-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .experiment-card-header {
        padding: 16px 18px;
    }

    .folder-name {
        font-size: 1.1em;
    }

    .experiment-actions {
        gap: 8px;
    }

    .toggle-details-btn,
    .experiment-actions .download-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .metadata-icons {
        gap: 6px;
    }

    .metadata-item {
        font-size: 0.7em;
        padding: 2px 6px;
        gap: 3px;
    }

    .metadata-value {
        max-width: 100px;
    }
}
