:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --background: #f8fafc;
    --text: #1e293b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.header {
    text-align: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-profile {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

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

.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.credits-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 800px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex: 1;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.step:hover {
    background-color: #f1f5f9;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background-color: var(--border);
}

.step.active .step-number,
.step.completed .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step.completed::after {
    background-color: var(--primary-color);
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-title {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Auth styles */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: linear-gradient(135deg, #f6f8fc 0%, #e9f1ff 100%);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    top: -400px;
    right: -400px;
    z-index: 0;
}

.auth-container::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    bottom: -300px;
    left: -300px;
    z-index: 0;
}

.auth-box {
    background-color: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    text-align: center;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(237, 242, 247, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-box h1 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.auth-description {
    margin-bottom: 2.5rem;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

.google-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.google-sign-in:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.google-sign-in:active {
    transform: translateY(0);
}

.google-sign-in img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.google-sign-in:hover img {
    transform: scale(1.1);
}

.auth-logo {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    animation: fadeInDown 0.6s ease-out;
}

.auth-footer {
    margin-top: 2rem;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.5;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-box {
    animation: fadeIn 0.6s ease-out;
}

/* Profile Menu Styles */
.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    min-width: 300px;
    display: none;
    z-index: 1000;
    padding: 0.5rem;
    border: 1px solid var(--border);
    animation: menuFadeIn 0.2s ease-out;
}

.profile-menu.show {
    display: block;
}

.profile-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.profile-email {
    font-size: 0.9rem;
    color: #64748b;
}

.credits-section {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: var(--radius);
    margin: 0.75rem 0.5rem;
}

.credits-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
}

.credits-amount-lg {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.credits-label {
    font-size: 0.875rem;
    color: #64748b;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credits-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-item-button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.menu-item-button .material-icons {
    font-size: 1.25rem;
}

.profile-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    color: var(--text);
}

.menu-item:hover {
    background-color: var(--background);
}

.menu-item.sign-out {
    color: #ef4444;
}

.menu-item.sign-out:hover {
    background-color: #fee2e2;
}

/* Additional styles */
.page-title {
    margin-bottom: 0;
}

.material-icons.icon-sm {
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .auth-box {
        padding: 2rem;
        margin: 1rem;
    }

    .auth-box h1 {
        font-size: 1.875rem;
    }

    .auth-description {
        font-size: 1rem;
    }

    .google-sign-in {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: white;
    box-shadow: var(--shadow);
}

.user-profile {
    position: relative;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    background-color: #e0f2fe;
    /* Light blue background */
    cursor: pointer;
    font-weight: 500;
}

.user-name:hover {
    background-color: #bae6fd;
    /* Slightly darker blue on hover */
}

.user-name::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.user-name.active::after {
    transform: rotate(180deg);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.profile-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-divider {
    height: 1px;
    background-color: var(--border);
    margin: 1rem -1rem;
    opacity: 0.8;
}

.sign-out-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background-color: #fee2e2;
    color: #991b1b;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sign-out-button:hover {
    background-color: #fecaca;
}

.user-info button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.screen {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.screen.hidden {
    display: none;
    opacity: 0;
}

.column-select {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.column-select h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

#imageTypeOptions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.radio-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background-color: white;
    transition: all 0.2s ease;
    width: 280px;
    text-align: center;
    overflow: hidden;
}

.radio-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.radio-button input {
    position: absolute;
    opacity: 0;
}

.radio-button input:checked+.radio-content {
    background-color: #eff6ff;
    border-color: var(--primary-color);
}

.radio-content {
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.layout-icon {
    width: 120px;
    height: 160px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    position: relative;
    background-color: white;
}

.layout-icon.one-col::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    top: 20%;
    bottom: 20%;
    background: repeating-linear-gradient(var(--border),
            var(--border) 2px,
            transparent 2px,
            transparent 12px);
}

.layout-icon.two-col::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 20%;
    bottom: 20%;
    background: repeating-linear-gradient(90deg,
            transparent 0,
            transparent calc(50% - 1px),
            var(--border) calc(50% - 1px),
            var(--border) calc(50% + 1px),
            transparent calc(50% + 1px),
            transparent 100%),
        repeating-linear-gradient(var(--border),
            var(--border) 2px,
            transparent 2px,
            transparent 12px);
}

.radio-button h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text);
}

.radio-button .description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.back-button {
    background-color: #94a3b8;
}

.back-button:hover {
    background-color: #64748b;
}

.navigation-buttons .button:not(:first-child):not(:last-child) {
    background-color: #10b981;
}

.navigation-buttons .button:not(:first-child):not(:last-child):hover {
    background-color: #059669;
}

.upload-zone {
    position: relative;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.upload-zone h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.upload-area {
    padding: 3rem;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background-color: var(--border);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
}

.file-list {
    margin-top: 2rem;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    margin: 0.5rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.preview-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.preview-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#imageCounter {
    font-weight: 500;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .preview-content {
        grid-template-columns: 1fr;
    }
}

.image-preview,
.text-preview {
    background-color: #f8fafc;
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 400px;
}

.image-preview h3,
.text-preview h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#imagePreview img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.text-preview-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.text-content {
    white-space: pre-wrap;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    height: calc(100% - 4rem);
    overflow-y: auto;
}

.radio-button:has(input:checked) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
}

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

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.container {
    display: flex;
    flex-grow: 1;
    padding: 1rem;
    gap: 1rem;
    flex-direction: column;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

#status-container {
    flex: 1;
    background-color: white;
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    min-height: 200px;
    max-height: 500px;
    overflow: auto;
}

.status-item {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item:last-child {
    border-bottom: none;
}

.status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.status-pending {
    background-color: #fef3c7;
}

.status-success {
    background-color: #dcfce7;
}

.status-error {
    background-color: #fee2e2;
}

#result {
    flex: 2;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.result-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#result-content {
    flex-grow: 1;
    padding: 1rem;
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-y: auto;
    border: none;
    resize: none;
    outline: none;
}

.loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 1rem;
    background-color: #10b981;
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(150%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateY(0);
}

.hidden {
    display: none;
}

#imageInput {
    display: none;
}

.processing-status {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #eff6ff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.875rem;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

/* Progress Section Styles */
.progress-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.progress-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
}

.progress-status {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 1.5rem;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 999px;
    width: 0;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.progress-details {
    text-align: center;
    color: var(--text);
}

.progress-details p {
    margin: 0.5rem 0;
}

.progress-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-item-status {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.progress-item-status.pending {
    background-color: #fef3c7;
}

.progress-item-status.success {
    background-color: #dcfce7;
}

.progress-item-status.error {
    background-color: #fee2e2;
}

.progress-item-text {
    flex-grow: 1;
    font-size: 0.875rem;
}

.credits-section {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: var(--radius);
    margin: 0.5rem;
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.credits-amount-lg {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.credits-label {
    color: #64748b;
    font-size: 0.875rem;
}

.credits-actions {
    display: flex;
    gap: 0.5rem;
}

.menu-item-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    background-color: white;
    color: var(--text);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
    flex: 1;
}

.menu-item-button:hover {
    background-color: var(--background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.menu-item-button .material-icons {
    font-size: 1.125rem;
}

.menu-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-item.button-like {
    margin: 0.5rem;
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--text);
}

.menu-item.button-like:hover {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.menu-item:hover {
    background-color: var(--background);
}

.menu-item .material-icons {
    font-size: 1.25rem;
}

#last-login {
    font-size: 0.875rem;
    color: #64748b;
    cursor: default;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* History Page Styles */
.main-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.history-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.history-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background-color: var(--background);
}

.history-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.history-icon.usage {
    background-color: #fee2e2;
    color: #991b1b;
}

.history-icon.purchase {
    background-color: #dcfce7;
    color: #166534;
}

.history-details {
    flex: 1;
}

.history-type {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.history-info {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-amount {
    font-weight: 600;
    margin-left: auto;
    font-size: 1.125rem;
    color: #991b1b;
}

.history-amount.purchase {
    color: #166534;
}

.empty-history {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.loading-history {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-history::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}