﻿/* Navigation Tabs Styling */
.tabs-container {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.nav-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
}

    .nav-tabs li {
        margin-right: 5px;
    }

        .nav-tabs li:first-child {
            margin-left: 10px;
        }

    .nav-tabs a {
        display: block;
        padding: 12px 20px;
        text-decoration: none;
        color: #495057;
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-bottom: none;
        border-radius: 4px 4px 0 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

        .nav-tabs a:hover {
            background-color: #e9ecef;
            color: #007bff;
        }

    .nav-tabs .active a {
        background-color: #fff;
        color: #007bff;
        border-color: #dee2e6 #dee2e6 #fff;
    }

/* Interactive Dashboard Enhancements */
.info-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.interactive-stat {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .interactive-stat:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .interactive-stat:active {
        transform: translateY(-1px) scale(1.01);
        transition: all 0.1s ease;
    }

    .interactive-stat::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent );
        transition: left 0.5s ease;
    }

    .interactive-stat:hover::before {
        left: 100%;
    }

.stat-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin: 10px 0;
}

.stat-box small {
    display: block;
    margin-top: 8px;
    opacity: 0.8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.high-priority {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

    .high-priority .stat-number {
        color: #dc3545;
    }

.medium-priority {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

    .medium-priority .stat-number {
        color: #ffc107;
    }

.low-priority {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

    .low-priority .stat-number {
        color: #17a2b8;
    }

.total {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

    .total .stat-number {
        color: #28a745;
    }

/* Chart Enhancements */
.chart-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin: 24px 0;
    border: 1px solid #e9ecef;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    display: inline-block;
}

.interactive-chart {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

    .interactive-chart:hover {
        opacity: 0.95;
    }

.chart-description {
    color: #6c757d;
    font-style: italic;
    margin: 8px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chart-legend-note {
    margin-top: 12px;
    text-align: center;
    color: #6c757d;
}

/* Quick Actions Styling */
.quick-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid #e9ecef;
}

    .quick-actions h5 {
        margin: 0 0 16px 0;
        color: #495057;
        font-weight: 600;
    }

.action-button {
    display: inline-block;
    padding: 10px 16px;
    margin: 4px 8px 4px 0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

    .action-button:hover {
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .action-button.primary {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }

        .action-button.primary:hover {
            background-color: #0056b3;
            color: white;
        }

    .action-button.secondary {
        background-color: #6c757d;
        color: white;
        border-color: #6c757d;
    }

        .action-button.secondary:hover {
            background-color: #545b62;
            color: white;
        }

    .action-button:not(.primary):not(.secondary) {
        background-color: #28a745;
        color: white;
        border-color: #28a745;
    }

        .action-button:not(.primary):not(.secondary):hover {
            background-color: #1e7e34;
            color: white;
        }

/* Batch Update Styling */
.batch-update-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.batch-update-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

    .batch-update-header img {
        margin-right: 10px;
    }

.batch-update-instructions {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

    .batch-update-instructions h4 {
        margin: 0 0 10px 0;
        color: #0c5460;
        font-weight: 600;
    }

    .batch-update-instructions ul {
        margin: 10px 0 0 20px;
        color: #0c5460;
    }

    .batch-update-instructions li {
        margin-bottom: 5px;
    }

.field-update-container {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

    .field-update-container:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-color: #007bff;
    }

.field-update-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.field-update-body {
    padding: 20px;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
}

.field-update-container.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    background-color: #f8f9ff;
}

.field-update-container.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.field-info {
    flex: 1;
}


    .field-info h5 {
        margin: 0 0 5px 0;
        color: #495057;
        font-weight: 600;
        font-size: 16px;
    }

    .field-info p {
        margin: 0;
        color: #6c757d;
        font-size: 14px;
        line-height: 1.4;
    }

.field-stats {
    text-align: right;
    margin-left: 20px;
}

.asset-count {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .field-controls label {
        font-weight: 600;
        color: #495057;
        min-width: 120px;
    }

    .field-controls .form-control {
        flex: 1;
        min-width: 200px;
        padding: 8px 12px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 14px;
    }

        .field-controls .form-control:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
            outline: 0;
        }

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

    .field-checkbox input[type="checkbox"] {
        transform: scale(1.3);
        cursor: pointer;
    }

        .field-checkbox input[type="checkbox"]:checked {
            accent-color: #007bff;
        }

    .field-checkbox label {
        cursor: pointer;
        margin: 0;
        font-weight: 600;
        color: #28a745;
        user-select: none;
    }

.batch-action-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

    .batch-action-buttons .btn {
        padding: 12px 24px;
        font-weight: 600;
        border-radius: 6px;
        transition: all 0.3s ease;
        text-decoration: none;
        border: none;
        cursor: pointer;
        font-size: 14px;
        min-width: 120px;
    }

        .batch-action-buttons .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
        color: white;
    }

    .btn-primary:disabled {
        background: linear-gradient(135deg, #6c757d 0%, #545b62 100%) !important;
        border-color: #6c757d !important;
        cursor: not-allowed !important;
        opacity: 0.5 !important;
    }

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    color: white;
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, #545b62 0%, #3d4142 100%);
        color: white;
    }

.single-field-indicator {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #17a2b8;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0c5460;
}

.field-selection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-weight: 600;
    color: #007bff;
    display: none;
}

    .field-selection-status.show {
        display: block;
        animation: slideInRight 0.3s ease;
    }

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.summary-box {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

    .summary-box h4 {
        margin: 0 0 10px 0;
        color: #0c5460;
        font-weight: 600;
    }

    .summary-box p {
        margin: 0;
        color: #0c5460;
        font-size: 16px;
    }

/* Priority Classes for Grid */
.priority-high {
    color: #dc3545;
    font-weight: bold;
}

.priority-medium {
    color: #ffc107;
    font-weight: bold;
}

.priority-low {
    color: #17a2b8;
    font-weight: bold;
}


.SearchResultsHolder {
    margin-bottom: 10px;
}

/* Page Header Styling */
.Watchlist_HeaderCaption {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

    .Watchlist_HeaderCaption img {
        margin-right: 10px;
    }

.WatchlistPage_SubHeader {
    margin-bottom: 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px 4px 0 0;
    border-bottom: 1px solid #dee2e6;
}

.GridView {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
}

.DataList_RowHeader {
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    border-top: none;
}

.DataList_Row {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
}

    .DataList_Row:nth-child(even) {
        background-color: #f9f9f9;
    }

    .DataList_Row:hover {
        background-color: #e3f2fd;
    }

.DataList_RowItemSelected {
    background-color: #bbdefb !important;
}

.DataList_RowFooter {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    font-size: 12px;
}

.DataList_RowEmpty {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Checkbox Styling */
.checkbox {
    cursor: pointer;
}

/* Message Styling */
.message-NoPermission {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

/* Info Box for Rules */
.info-box {
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #0066cc;
}

    .info-box h4 {
        margin: 0 0 10px 0;
        color: #004499;
    }

/* Tab Navigation Enhancement */
.nav-tabs li.active {
    background-color: #007bff;
    border-radius: 4px 4px 0 0;
}

    .nav-tabs li.active a {
        color: white;
        background-color: #007bff;
    }

/* Loading Animation */
.loading {
    text-align: center;
    padding: 20px;
}

    .loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading States */
.loading-chart {
    position: relative;
}

    .loading-chart::after {
        content: 'Loading chart data...';
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(248, 249, 250, 0.9);
        color: #6c757d;
        font-style: italic;
    }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    text-align: center;
}

    .loading-spinner .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #007bff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-box {
        min-width: auto;
    }

    .nav-tabs {
        flex-direction: column;
    }

        .nav-tabs li {
            margin-right: 0;
            margin-bottom: 2px;
        }

    .interactive-stat {
        margin-bottom: 0;
    }

    .chart-container {
        padding: 16px;
    }

    .quick-actions {
        text-align: center;
    }

    .action-button {
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    .batch-update-container {
        padding: 16px;
        margin: 10px 0;
    }

    .field-update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .field-stats {
        text-align: left;
        margin-left: 0;
    }

    .field-controls {
        flex-direction: column;
        align-items: stretch;
    }

        .field-controls label {
            min-width: auto;
        }

        .field-controls .form-control {
            min-width: auto;
        }

    .batch-action-buttons {
        flex-direction: column;
        align-items: center;
    }

        .batch-action-buttons .btn {
            width: 100%;
            max-width: 250px;
        }
}
