/* Tools Suite - Tailwind CSS */

@import url('https://cdn.tailwindcss.com');

/* Custom CSS for overrides and additional styling */

/* Typography */
h1 {
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: rgb(75, 85, 99);
    line-height: 1.625;
}

small {
    color: rgb(107, 114, 128);
    font-size: 0.875rem;
}

a {
    color: rgb(37, 99, 235);
}

a:hover {
    color: rgb(29, 78, 216);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    background-color: white;
    color: rgb(17, 24, 39);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.2s ease;
}

/* Container */
.container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: white;
    border-bottom: 1px solid rgb(229, 231, 235);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(17, 24, 39);
    text-decoration: none;
    transition: color 0.2s;
}

.logo:hover {
    color: rgb(55, 65, 81);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: rgb(75, 85, 99);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: rgb(17, 24, 39);
}

/* Footer */
footer {
    background-color: rgb(249, 250, 251);
    border-top: 1px solid rgb(229, 231, 235);
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
}

footer p {
    color: rgb(75, 85, 99);
    font-size: 0.875rem;
    margin: 0;
}

footer a {
    color: rgb(37, 99, 235);
    text-decoration: none;
}

footer a:hover {
    color: rgb(29, 78, 216);
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgb(229, 231, 235);
    padding: 1.5rem;
    transition: all 0.15s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(17, 24, 39);
}

.card-text {
    color: rgb(75, 85, 99);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

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

.btn-primary {
    background-color: rgb(17, 24, 39);
    color: white;
    border-color: rgb(17, 24, 39);
}

.btn-primary:hover:not(:disabled) {
    background-color: rgb(31, 41, 55);
}

.btn-secondary {
    background-color: rgb(243, 244, 246);
    color: rgb(17, 24, 39);
    border-color: rgb(229, 231, 235);
}

.btn-secondary:hover:not(:disabled) {
    background-color: rgb(229, 231, 235);
}

.btn-outline {
    background-color: transparent;
    color: rgb(17, 24, 39);
    border: 1px solid rgb(209, 213, 219);
}

.btn-outline:hover:not(:disabled) {
    background-color: rgb(249, 250, 251);
}

.btn-accent {
    background-color: rgb(37, 99, 235);
    color: white;
    border-color: rgb(37, 99, 235);
}

.btn-accent:hover:not(:disabled) {
    background-color: rgb(29, 78, 216);
}

.btn-destructive {
    background-color: rgb(220, 38, 38);
    color: white;
    border-color: rgb(220, 38, 38);
}

.btn-destructive:hover:not(:disabled) {
    background-color: rgb(185, 28, 28);
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.5rem;
    color: rgb(17, 24, 39);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgb(156, 163, 175);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    ring: 2px;
    ring-color: rgb(37, 99, 235);
    border-color: transparent;
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: rgb(243, 244, 246);
    color: rgb(107, 114, 128);
    cursor: not-allowed;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(17, 24, 39);
    margin-bottom: 0.5rem;
}

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

input[type="checkbox"],
input[type="radio"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

input[type="range"] {
    cursor: pointer;
}

/* Dropzone */
.dropzone {
    border: 2px dashed rgb(209, 213, 219);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropzone:hover {
    border-color: rgb(37, 99, 235);
    background-color: rgb(239, 246, 255);
}

.dropzone.dragover {
    border-color: rgb(37, 99, 235);
    background-color: rgb(239, 246, 255);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dropzone-title {
    font-weight: 600;
    color: rgb(17, 24, 39);
    margin-bottom: 0.25rem;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: rgb(75, 85, 99);
}

/* File Preview Grid */
.file-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .file-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .file-preview {
        grid-template-columns: repeat(4, 1fr);
    }
}

.preview-item {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid rgb(229, 231, 235);
    overflow: hidden;
    transition: all 0.15s ease;
}

.preview-item:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.preview-item img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.preview-info {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: rgb(75, 85, 99);
    border-top: 1px solid rgb(229, 231, 235);
}

.status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.status-pending {
    background-color: rgb(107, 114, 128);
}

.status-processing {
    background-color: rgb(234, 179, 8);
}

.status-done {
    background-color: rgb(34, 197, 94);
}

.status-error {
    background-color: rgb(239, 68, 68);
}

/* File List */
.file-item {
    background-color: white;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.15s ease;
}

.file-item:hover {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 500;
    color: rgb(17, 24, 39);
    font-size: 0.875rem;
}

.file-item-meta {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
    margin-top: 0.25rem;
}

.file-item-status {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Preset Cards */
.preset-card {
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-card:hover {
    border-color: rgb(37, 99, 235);
    background-color: rgb(239, 246, 255);
}

.preset-card.selected {
    border-color: rgb(37, 99, 235);
    background-color: rgb(239, 246, 255);
    color: rgb(12, 35, 64);
}

.preset-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preset-card-desc {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: rgb(229, 231, 235);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: rgb(37, 99, 235);
    transition: all 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.75rem;
    color: rgb(75, 85, 99);
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 28rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: 1px solid;
    padding: 1rem;
    font-size: 0.875rem;
    z-index: 50;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-success {
    background-color: rgb(240, 253, 244);
    border-color: rgb(187, 247, 208);
    color: rgb(20, 83, 45);
}

.notification-error {
    background-color: rgb(254, 242, 242);
    border-color: rgb(254, 202, 202);
    color: rgb(127, 29, 29);
}

.notification-warning {
    background-color: rgb(254, 252, 231);
    border-color: rgb(253, 224, 71);
    color: rgb(113, 63, 18);
}

.notification-info {
    background-color: rgb(239, 246, 255);
    border-color: rgb(191, 219, 254);
    color: rgb(30, 58, 138);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 4px solid rgb(229, 231, 235);
    border-top-color: rgb(37, 99, 235);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-muted {
    color: rgb(75, 85, 99);
}

.text-accent {
    color: rgb(37, 99, 235);
}

.gap-tight {
    gap: 0.5rem;
}

.gap-normal {
    gap: 1rem;
}

.gap-loose {
    gap: 1.5rem;
}

/* Info Box */
.info-box {
    background-color: rgb(239, 246, 255);
    border: 1px solid rgb(191, 219, 254);
    border-radius: 0.5rem;
    padding: 1rem;
    color: rgb(30, 58, 138);
}

.info-box h3 {
    color: rgb(30, 58, 138);
    margin-bottom: 0.5rem;
}

.info-box ul {
    list-style-type: disc;
    list-style-position: inside;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-box li {
    color: rgb(37, 99, 235);
}

/* Success Box */
.success-box {
    background-color: rgb(240, 253, 244);
    border: 1px solid rgb(187, 247, 208);
    border-radius: 0.5rem;
    padding: 1rem;
    color: rgb(20, 83, 45);
}

.success-box h3 {
    color: rgb(20, 83, 45);
    margin-bottom: 0.5rem;
}

/* Grid Utilities */
.grid-auto {
    display: grid;
    gap: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 1rem;
        font-size: 0.75rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Sections */
.section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.875rem;
    color: rgb(75, 85, 99);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: rgb(37, 99, 235);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: rgb(29, 78, 216);
}

/* Spacing Utilities */
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

/* Text Utilities */
.text-gray-600 {
    color: rgb(75, 85, 99);
}

.text-gray-900 {
    color: rgb(17, 24, 39);
}

.text-blue-600 {
    color: rgb(37, 99, 235);
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-8 {
    gap: 2rem;
}

/* Display Utilities */
.block {
    display: block;
}

.inline-flex {
    display: inline-flex;
}

.no-underline {
    text-decoration: none;
}

.max-w-2xl {
    max-width: 42rem;
}

/* Hover Effects */
.hover\:shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:text-blue-700:hover {
    color: rgb(29, 78, 216);
}

.hover\:text-gray-700:hover {
    color: rgb(55, 65, 81);
}

.hover\:text-gray-900:hover {
    color: rgb(17, 24, 39);
}
