﻿
/* General Styles */
.form-control {
    display: block;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

/* Radio Controls */
.radio-inline input[type=radio] {
    margin-right: 5px;
    vertical-align: middle;
}

.radio-inline label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

/* Step Progress Bar */
.step-progress-container {
    padding: 20px 0;
    margin-bottom: 20px;
}

.step-progress {
    display: flex;
    align-items: center;
    margin: 0 auto;
    overflow: visible;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    min-width: 100px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
    position: relative;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background-color: #e0e0e0;
    margin: 0 5px;
}

.step-label {
    color: #999;
    font-size: 14px;
    text-align: center;
    min-width: 80px;
}

/* Completed Step Styles */
.step-item.completed .step-circle {
    background-color: #28a745;
    color: white;
}

.step-line.completed {
    background-color: #28a745;
}

/* Active Step Styles */
.step-item.active .step-circle {
    background-color: #6f42c1;
    color: white;
}

.step-item.active .step-label {
    color: #6f42c1;
    font-weight: bold;
}

/* For steps that are completed but also active */
.step-item.completed.active .step-circle {
    background-color: #6f42c1;
}

/* Page Headers */
h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Review Section Styles */
.review-container {
    font-family: Arial, sans-serif;
}

.review-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.review-icon {
    margin-right: 10px;
    color: #28a745;
    font-size: 18px;
}

.review-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.review-content {
    padding: 15px;
}

.review-row {
    display: flex;
    margin-bottom: 15px;
}

    .review-row:last-child {
        margin-bottom: 0;
    }

.review-col {
    flex: 1;
    margin-right: 20px;
}

    .review-col:last-child {
        margin-right: 0;
    }

.review-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.review-value {
    font-size: 14px;
    color: #333;
}

.ready-message {
    background-color: #f8f4ff;
    border-color: #e2d5ff;
}

.ready-content {
    padding: 15px;
    color: #6f42c1;
    font-weight: 500;
    text-align: center;
}

/* Content Panel Styles */
.content-panel {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    min-height: 300px;
    margin: 20px 0;
    background-color: white;
}

/* Button Container Styles */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-bottom: 10px;
}

    .button-container div {
        display: flex;
        gap: 10px;
    }

/* Button Styles */
.btn-cancel, .btn-prev, .defaultbutton, .btn-submit {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.btn-cancel, .btn-prev {
    padding: 12px !important;
    color: #344054 !important;
    font-weight: 700 !important;
    text-align: center;
    font-size: 12px !important;
    height: auto !important;
    background-color: #FFFFFF;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    display: inline-block;
    text-decoration: none !important;
}

.defaultbutton, .btn-submit {
    color: #fff !important;
    font-weight: 700 !important;
    text-align: center;
    height: auto !important;
    background-color: #7266DB;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 12px !important;
    margin-right: 12px;
}

/* Form Row Styles */
.form-row {
    margin-bottom: 15px;
}

/* Role CheckBoxList styling */
.role-checkbox-list {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    background-color: #fff;
}

    .role-checkbox-list label {
        display: block;
        margin-bottom: 5px;
        font-weight: normal;
    }

/* Selected roles display */
.selected-roles-display {
    background-color: #f8f8ff;
    border: 1px solid #e0e0e0;
    padding: 5px 10px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
}

.role-tag {
    background-color: #e2d5ff;
    color: #6f42c1;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

.user-tag {
    background-color: #e2d5ff;
    color: #6f42c1;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* User list container styling */
.user-list-container {
    background-color: #f8f0ff;
    border: 1px solid #e2d5ff;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* No users message */
.no-users-message {
    color: #6c757d;
    font-style: italic;
    padding: 5px;
}

.filter-item .review-value {
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.RadGridMenuItemsWidth {
    width: 100% !important;
}

.grid_title + div {
    overflow-y: visible !important;
}

/* View Only Mode */
.view-only-mode .review-section {
    border-left: 4px solid #6f42c1; /* Purple border to indicate view mode */
}

.view-only-mode .review-header {
    background-color: #f8f4ff; /* Light purple background */
}

.view-only-mode .ready-message {
    background-color: #e9ecef; /* Gray background */
    border-color: #ced4da;
}

.view-only-mode .ready-content {
    color: #495057; /* Darker text to indicate informational status */
}

/* Add these to your style section */
.popup-success {
    border-left: 4px solid #28a745 !important;
}

.popup-error {
    border-left: 4px solid #dc3545 !important;
}

.popup-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-button-primary {
    background-color: #7266DB;
    color: white;
}

    .popup-button-primary:hover {
        background-color: #5a4fd1;
    }

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 500px;
    max-width: 90vw;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

    .popup-container h3 {
        margin: 0 0 15px 0;
        color: #333;
        font-size: 20px;
        font-weight: 600;
    }

    .popup-container p {
        margin-bottom: 25px;
        color: #666;
        line-height: 1.5;
        font-size: 14px;
    }

.popup-button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.2s ease;
}

    .popup-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

.popup-button-primary {
    background-color: #6f42c1;
    color: white;
}

    .popup-button-primary:hover {
        background-color: #5a4fd1;
    }

.popup-button-secondary {
    background-color: #f2f2f2;
    color: #333;
}

    .popup-button-secondary:hover {
        background-color: #e6e6e6;
    }

.popup-button-danger {
    background-color: #dc3545;
    color: white;
}

    .popup-button-danger:hover {
        background-color: #c82333;
    }



/* Drawer Framework Styles Start */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2147483628;
    display: none;
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    max-width: 60%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: width 0.3s ease-in-out;
    overflow: hidden;
}

.drawer-open {
    width: 60%;
}

.drawer-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    margin: 0;
    font-size: 18px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.drawer-content {
    height: calc(100% - 40px);
    overflow: visible; /* Changed from auto to visible */
}

.drawer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: visible; /* Added to ensure iframe content doesn't scroll */
}

/* Drawer Framework Styles End */