* {
    box-sizing: border-box;
}

.sniffpress-container {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    /* padding: 20px; */
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.sniffpress-container #sniffpress-form {
    width: 32%;
    margin-top: 0;
}

/*==================================
======= Welcome Message
==================================*/
.welcome-message {
    /*background: #f8f9fa;*/
    /*border: 1px solid #dcdcde;*/
    /*border-radius: 4px;*/
    /*padding: 30px;*/
    text-align: center;
    /*margin-top: 20px;*/
}
.welcome-message h3 {
    color: #2271b1;
    margin-top: 0;
    margin-bottom: 15px;
}
.welcome-message p {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 25px;
    line-height: 1.5;
}
.welcome-tips {
    text-align: left;
    background: white;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}
.welcome-tips h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 10px;
}
.welcome-tips ul {
    margin: 0;
    padding-left: 15px;
    list-style: auto;
}
.welcome-tips li {
    margin-bottom: 8px;
    line-height: 1.4;
    color: #50575e;
}
.welcome-tips li:last-child {
    margin-bottom: 0;
}

/* Hide welcome message when search is performed */
.has-results .welcome-message {
    display: none;
}

/*==================================
======= Form Groups
==================================*/
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

/* Search String Field */
.search-string-container {
    position: relative;
    display: flex;
    align-items: center;
}
.search-string-container input {
    flex: 1;
    padding-right: 30px;
}
.clear-search {
    position: absolute;
    right: 2px;
    height: 24px;
    width: 24px;
    padding: 0 !important;
    border: none;
    background: none !important;
    color: #757575 !important;
    cursor: pointer !important;
}
.clear-search:hover {
    color: #d63638;
}

.clear-search .dashicons {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Location Select */
.location-select-container {
    position: relative;
}
.sniffpress-multiselect {
    width: 100%;
    min-height: 150px;
    padding: 5px;
    border-color: #8c8f94;
    border-radius: 4px;
}
.sniffpress-multiselect option {
    padding: 4px 8px;
}
.sniffpress-multiselect optgroup {
    font-weight: 600;
    color: #1d2327;
}
.location-actions {
    margin-top: 5px;
    font-size: 13px;
}
.location-actions .button-link {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
}
.location-actions .button-link:hover {
    color: #135e96;
}
.action-separator {
    color: #dcdcde;
    margin: 0 5px;
}

/* Options Group */
.options-group {
    margin-top: 10px;
}
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* File Types */
.file-types-container,
.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.file-type-checkbox,
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
    background: #f0f0f1;
    padding: 3px 8px;
    border-radius: 3px;
}
.file-type-checkbox:hover,
.option-checkbox:hover {
    background: #e0e0e1;
}
.file-type-checkbox input[type="checkbox"],
.option-checkbox input[type="checkbox"] {
    margin: 0;
}

/* Search Limits Styles */
.search-limits-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.limit-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: calc(50% - 15px);
}
.limit-label {
    font-weight: 500;
    font-size: 13px;
    color: #1d2327;
}
.limit-description {
    font-size: 12px;
    color: #646970;
    font-style: italic;
}
.limit-option input.small-text {
    width: 100%;
}

/* Exclusion Patterns Styles */
.exclude-patterns-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.exclude-input {
    width: 100%;
    max-width: 500px;
}
.exclude-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
}
.exclude-tag {
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.exclude-tag-remove {
    color: #d63638;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.exclude-tag-remove:hover {
    color: #8a2426;
}
.exclude-examples small {
    color: #646970;
    font-style: italic;
}
.field-description {
    font-weight: normal;
    color: #646970;
    font-size: 13px;
    margin-left: 8px;
}

/* Submit Buttons */
.submit-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dcdcde;
}
.submit-group .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f0f0f1;
    border-radius: 4px;
}
.loading .spinner {
    float: none;
    margin: 0;
}

/* Notices */
.notice {
    margin: 0;
    padding: 12px;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .search-limits-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .limit-option {
        width: 100%;
    }
}

/*==================================
======= Results Container
==================================*/
.results-container {
    width: 65%;
    /* margin-top: 30px; */
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.results-header {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}
.result-item {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #4b6ea8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}
.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.result-path {
    font-family: 'Courier New', monospace;
    color: #4b6ea8;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.result-path:before {
    content: "📄";
    margin-right: 8px;
    font-size: 16px;
}
.result-line {
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    display: block;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    border: 1px solid #e9ecef;
}
.result-line-number {
    display: inline-block;
    width: 40px;
    color: #6c757d;
    font-weight: bold;
    text-align: right;
    margin-right: 10px;
    user-select: none;
}

/* Highlighting */
.highlight {
    background-color: #fff3cd;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
    color: #d39e00;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
    background: white;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}


.search-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #646970;
    font-size: 13px;
}
.search-stats {
    margin: 8px 0;
    padding: 8px;
    background: #f0f6fc;
    border-left: 4px solid #72aee6;
    font-size: 13px;
}
.notice-inline {
    margin: 10px 0;
    padding: 10px 12px;
}
.notice-inline p {
    margin: 0;
}

.highlight-field {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1;
}
.exclude-tag {
    transition: all 0.2s ease;
}
.exclude-tag:hover {
    background: #f8f9fa;
    border-color: #c3c4c7;
}

/* File size */
.file-size {
    font-size: 11px;
    color: #646970;
    margin-left: 8px;
    font-style: italic;
}
.result-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media screen and (max-width: 782px) {
    .file-size {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 20px;
    color: #4b6ea8;
    font-weight: bold;
}

.loading .spinner {
    margin-left: 10px;
    vertical-align: middle;
}

/* Make results clickable */
.result-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

.file-link {
    color: #4b6ea8;
    text-decoration: none;
}

.file-link:hover {
    text-decoration: underline;
}