/* VibeOps Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* Typography variables */
    --font-family-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

body {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 25%, #f5f7fa 50%, #f8faff 75%, #ffffff 100%);
    min-height: 100vh;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%) !important;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.logo-container {
    position: relative;
    z-index: 2;
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.brand-text {
    position: relative;
    z-index: 2;
    text-align: left;
}

.brand-title {
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    font-size: 2rem;
    margin: 0;
    text-align: left;
}

.brand-tagline {
    font-weight: var(--font-weight-light);
    letter-spacing: 0.01em;
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.1) !important;
    border-color: rgba(13, 110, 253, 0.1);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.8) 0%, rgba(240, 244, 255, 0.6) 100%) !important;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #0a58ca);
    border-radius: 12px 12px 0 0;
}

.card-header h5, .card-header h6 {
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.015em;
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.card-body h5 {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

/* Form enhancements */
.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: var(--font-family-primary);
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.task-select {
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    line-height: 1.5;
}

.task-select option {
    padding: 0.75rem 0.5rem;
    line-height: 1.6;
}

.task-select option:first-child {
    font-style: italic;
    color: var(--secondary-color);
}

/* Task description and example styling */
#taskDescription {
    animation: fadeIn 0.3s ease-in-out;
}

#taskDescription small {
    font-weight: var(--font-weight-regular);
    color: #055160;
    line-height: 1.4;
}

#exampleContent {
    font-family: var(--font-family-primary);
}

#exampleContent small {
    font-weight: var(--font-weight-light);
    color: var(--secondary-color);
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
    letter-spacing: -0.01em;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Output content styling */
#outputContent {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 600px;
    overflow-y: auto;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

/* Preview mode styling */
#outputContent.preview-mode {
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%) !important;
    border: 2px dashed rgba(13, 110, 253, 0.3);
    color: #6c757d;
    font-style: italic;
}

.preview-label {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* Loading spinner enhancement */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alert enhancements */
.alert {
    border-radius: 8px;
    border: none;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: linear-gradient(135deg, rgba(207, 244, 252, 0.9) 0%, rgba(182, 239, 251, 0.8) 100%);
    color: #055160;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(248, 215, 218, 0.9) 0%, rgba(241, 174, 181, 0.8) 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}



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

/* Empty state styling */
.rocket-container {
    animation: float 3s ease-in-out infinite;
}

.rocket-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

#emptyState h4 {
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

/* Start Here Assistant Panel */
.start-here-panel {
    max-width: 400px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
    border: 1px solid rgba(13, 110, 253, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: white;
    padding: 1rem;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
}

.panel-header i {
    color: rgba(255, 255, 255, 0.9);
}

.panel-body {
    padding: 1.5rem 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(248, 250, 255, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.step-item:hover {
    background: rgba(13, 110, 253, 0.05);
    transform: translateX(2px);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.step-text {
    color: var(--dark-color);
    font-weight: var(--font-weight-regular);
    line-height: 1.4;
    text-align: left;
}

.panel-footer {
    background: rgba(248, 250, 255, 0.3);
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(13, 110, 253, 0.1);
}

/* HTML View Styling */
#outputContent.html-view {
    font-family: var(--font-family-primary);
    line-height: 1.6;
}

#outputContent.html-view h1,
#outputContent.html-view h2,
#outputContent.html-view h3,
#outputContent.html-view h4,
#outputContent.html-view h5,
#outputContent.html-view h6 {
    font-weight: var(--font-weight-semibold);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#outputContent.html-view h1 { font-size: 1.5rem; }
#outputContent.html-view h2 { font-size: 1.35rem; }
#outputContent.html-view h3 { font-size: 1.2rem; }
#outputContent.html-view h4 { font-size: 1.1rem; }
#outputContent.html-view h5 { font-size: 1rem; }
#outputContent.html-view h6 { font-size: 0.9rem; }

#outputContent.html-view ul {
    padding-left: 0;
    margin-bottom: 1rem;
}

#outputContent.html-view li {
    padding: 0.25rem 0;
    margin-left: 1.5rem;
    position: relative;
}

#outputContent.html-view li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

#outputContent.html-view p {
    margin-bottom: 1rem;
}

#outputContent.html-view strong {
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

#outputContent.html-view .emoji {
    font-size: 1.1em;
    margin-right: 0.25rem;
}

/* Table styling for HTML view */
#outputContent.html-view .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#outputContent.html-view .table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

#outputContent.html-view .table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a58ca 100%);
    color: black;
    font-weight: var(--font-weight-bold);
    border: none;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: none;
    text-transform: uppercase;
}

#outputContent.html-view .table td {
    padding: 0.75rem 0.5rem;
    border-color: rgba(13, 110, 253, 0.1);
    vertical-align: top;
    line-height: 1.4;
}

#outputContent.html-view .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 255, 0.3);
}

#outputContent.html-view .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* About Page Styles */
.content-section {
    font-size: 1.1rem;
    line-height: 1.7;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(248, 250, 255, 0.8) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.conclusion-box {
    background: rgba(248, 250, 255, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0.5rem;
    }
    
    header .col {
        text-align: center;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    #outputContent {
        font-size: 12px;
        max-height: 400px;
    }
}

/* Toast enhancements */
.toast {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* File input styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

.form-control[type="file"]::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.form-control[type="file"]::file-selector-button:hover {
    background: #0a58ca;
}

/* Success state enhancements */
.output-content {
    position: relative;
}

/* Copy feedback */
.copy-feedback {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.copy-feedback.show {
    opacity: 1;
}
