:root {
    --apple-bg: #1d1d1f;
    --apple-text: #f5f5f7;
    --apple-hover: #e8e8ed;
    --nav-height: 44px;
    --font-stack: "SF Pro Text", "Myriad Set Pro", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-stack);
    background-color: #fffdf0;
    /* Slightly yellow background */
    color: #1d1d1f;
}

/* Apple-style Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    width: 100%;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    z-index: 9999;
}

.nav-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    /* Align structure */
    align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.nav-link {
    color: #d6d6d6;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: -0.01em;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    opacity: 1;
    color: #fff;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: var(--nav-height);
    left: -20px;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-section-title {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.menu-action {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.menu-action:last-child {
    border-bottom: none;
}

.menu-action:hover {
    color: #0071e3;
}

/* Main Content */
.container {
    padding-top: 80px;
    /* Space for fixed navbar */
    max-width: 980px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.hero {
    text-align: center;
    padding: 30px 0 20px 0;
}

h1 {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.status-card {
    background: #fff;
    border-radius: 14px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin: 10px auto 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.status-card h3 {
    margin: 0;
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
}

.status-card p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.dot-active {
    background: #34c759;
    box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}

.dot-inactive {
    background: #ff3b30;
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.4);
}

.dot-failed {
    background: #ff9500;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.6);
}

.dot-pending {
    background: #0071e3;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.4);
}

.dot-neutral {
    background: #86868b;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Refresh Spinner */
.refresh-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(134, 134, 139, 0.3);
    border-radius: 50%;
    border-top-color: #86868b;
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.refresh-spinner:hover {
    transform: scale(1.2);
    border-top-color: #0071e3;
}

.refresh-spinner.spinning {
    animation: spin 0.8s linear infinite;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 14px;
}

.alert-success {
    background: #e3f9e5;
    color: #1f7a1f;
}

.alert-warning {
    background: #fff4ce;
    color: #8a6d3b;
}

.alert-info {
    background: #e8f0fe;
    color: #1a73e8;
}

.alert-error {
    background: #fce8e6;
    color: #c5221f;
}

/* Quick Import Flex Layout */
.import-container-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 700px;
    margin: 20px auto;
    flex-wrap: wrap;
    /* Responsive behavior */
}

/* Drop Zone styling - Halved height and reduced width */
.drop-zone {
    flex: 0 0 260px;
    /* Fixed width for better side-by-side control */
    height: 70px;
    /* Much more compact height */
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #86868b;
    border: 2px dashed #d2d2d7;
    border-radius: 18px;
    transition: all 0.2s ease;
    background: #fff;
    margin: 0;
    /* Managed by flex gap */
}

.drop-zone:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.drop-zone--over {
    border-style: solid;
    background-color: rgba(0, 113, 227, 0.05);
    color: #0071e3;
    border-color: #0071e3;
    box-shadow: inset 0 0 0 1px #0071e3;
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    pointer-events: none;
    line-height: 1.4;
}

/* File List Area - Now beside the drop zone */
.file-list-container {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: none;
    /* Shown via JS */
    margin: 0;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 150px;
    /* Slightly shorter scroll area */
    overflow-y: auto;
    text-align: left;
    font-size: 13px;
}

.file-list li {
    padding: 6px 10px;
    border-bottom: 1px solid #f5f5f7;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-list li:last-child {
    border-bottom: none;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: #0071e3;
    color: #fff;
}

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

.btn-secondary {
    background-color: #f5f5f7;
    color: #1d1d1f;
}

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

.import-section {
    text-align: center;
    margin-top: 20px;
}

.import-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Progress Bar Styling */
.progress-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: #e8e8ed;
    border-radius: 980px;
    height: 6px;
    overflow: hidden;
    display: none;
    /* Hidden by default */
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #0071e3;
    transition: width 0.3s ease;
}

.progress-info {
    font-size: 12px;
    color: #86868b;
    margin-top: 5px;
    display: none;
}

/* Import Mode Selection */
.import-mode-selector {
    display: flex;
    background: #f5f5f7;
    border-radius: 12px;
    padding: 4px;
    margin: 0 auto 20px auto;
    gap: 4px;
    max-width: 300px;
}

.mode-option {
    flex: 1;
}

.mode-option input {
    display: none;
}

.mode-option label {
    display: block;
    padding: 8px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #86868b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-option input:checked+label {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Form / Modal Styling */
.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.form-group label {
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.form-input {
    width: 240px;
    /* Consistent width for all fields */
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    outline: none;
}

.form-input:disabled {
    background-color: #f5f5f7;
    color: #86868b;
    cursor: not-allowed;
}

/* Generic Centered Modal / Alert */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal-alert {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-alert h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-alert p {
    color: #86868b;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px 0 25px 0;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}