:root {
    --primary-color: #2196f3;
    --secondary-color: #1976d2;
    --background-color: #f5f5f5;
    --text-color: #333;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

h1, h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Login styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--background-color);
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: var(--secondary-color);
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logout-button {
    padding: 0.5rem 1rem;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.logout-button:hover {
    background-color: #d32f2f;
}

/* Location Section */
.location-section {
    margin-bottom: 2rem;
    text-align: center;
}

.location-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.location-select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
}

.location-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:not(.disabled):hover {
    border-color: var(--primary-color);
    background-color: rgba(33, 150, 243, 0.02);
}

.upload-area.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
}

.selected-file {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-button {
    background-color: var(--primary-color);
    color: white;
}

.confirm-button:hover {
    background-color: var(--secondary-color);
}

.cancel-button {
    background-color: #f5f5f5;
    color: var(--text-color);
}

.cancel-button:hover {
    background-color: #e0e0e0;
}

/* Jobs Section */
.jobs-section {
    margin-top: 3rem;
}

.job-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-status {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-content {
    margin-top: 1rem;
}

.video-url {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.url-text {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 1rem;
}

.copy-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background-color: var(--secondary-color);
}

.copy-button.copied {
    background-color: var(--success-color);
}

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

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}