﻿/* Basic styling to make the app look clean and modern */
body {
    background-color: #f4f7f6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

/* Dashboard Widget Styling */
.widget {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    height: 100%;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.widget-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a2b4d;
}

.widget-subvalue {
    font-size: 1rem;
    color: #777;
}

/* Workflow Wizard Steps */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

    .wizard-steps .step {
        flex: 1;
        text-align: center;
        position: relative;
        color: #aaa;
    }

        .wizard-steps .step .step-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f0f0;
            color: #aaa;
            border: 2px solid #ddd;
            line-height: 36px;
            font-weight: 700;
            margin: 0 auto 10px auto;
        }

        .wizard-steps .step .step-title {
            font-weight: 600;
        }

        /* Active Step */
        .wizard-steps .step.active .step-circle {
            background: #e6f7ff;
            border-color: #007bff;
            color: #007bff;
        }

        .wizard-steps .step.active {
            color: #007bff;
        }

        /* Completed Step */
        .wizard-steps .step.completed .step-circle {
            background: #28a745;
            border-color: #28a745;
            color: #fff;
        }

        .wizard-steps .step.completed {
            color: #28a745;
        }

        /* Step Connectors (pseudo-elements) */
        .wizard-steps .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 19px;
            left: 50%;
            width: 100%;
            height: 2px;
            background: #ddd;
            z-index: -1;
            transform: translateX(calc(-50% + 20px)); /* Adjust for circle size */
        }

        .wizard-steps .step.completed:not(:last-child)::after {
            background: #28a745;
        }


/* Drop Zone Styling */
.drop-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #007bff;
    background-color: #f4f8ff;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .drop-zone:hover {
        background-color: #e9f2ff;
    }

/* File list for tagging */
.file-tagging-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Fixed height for scrollable tables */
.scrollable-table-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Fixes toaster position to be top-right of the viewport */
#toaster-container > .toast-container {
    position: fixed;
}

/* === NEW: Form & Modal Styling Improvements === */

/* Make labels distinct from inputs */
label {
    font-weight: 600;
    color: #333;
    /* Reduced margin-bottom to bring label closer to input */
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

    /* Optional: Add asterisk to required fields */
    label.required-field::after {
        content: " *";
        color: #dc3545;
    }

/* Style inputs to be distinct areas */
.form-control {
    background-color: #f9f9f9;
    border: 1px solid #ced4da;
    color: #495057;
}

    .form-control:focus {
        background-color: #fff;
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .form-control:disabled, .form-control[readonly] {
        background-color: #e9ecef;
        opacity: 1;
    }

/* Modal Headers */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: #1a2b4d;
}

/* Modal Body Padding */
.modal-body {
    padding: 1.5rem;
}

/* Section Dividers in Modals/Forms */
hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Helper text */
.text-muted {
    font-size: 0.85rem;
}
