/* VMPFence Status Modal Styles 
*   @since 2.1.0
*   @since 2.1.2
*   @package VMPFence
*   @subpackage StatusModal
*/

.vmpfence-status-modal {
    position: absolute;
    z-index: 999999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    max-width: 500px;
    padding: 0;
    pointer-events: auto;
}

/* Speech bubble tail pointing down */
.vmpfence-status-modal::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
    z-index: 2;
}

.vmpfence-status-modal::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    margin-left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #ddd;
    z-index: 1;
}

/* Arrow pointing up (when modal is below) */
.vmpfence-status-modal.arrow-up::after {
    bottom: auto;
    top: -8px;
    border-top: none;
    border-bottom: 8px solid white;
}

.vmpfence-status-modal.arrow-up::before {
    bottom: auto;
    top: -9px;
    border-top: none;
    border-bottom: 9px solid #ddd;
}

/* Arrow pointing left (when modal is on the right) */
.vmpfence-status-modal.arrow-left::after {
    bottom: auto;
    left: -8px;
    top: 50%;
    margin-top: -8px;
    margin-left: 0;
    border-left: none;
    border-right: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.vmpfence-status-modal.arrow-left::before {
    bottom: auto;
    left: -9px;
    top: 50%;
    margin-top: -9px;
    margin-left: 0;
    border-left: none;
    border-right: 9px solid #ddd;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

/* Arrow pointing right (when modal is on the left) */
.vmpfence-status-modal.arrow-right::after {
    bottom: auto;
    left: auto;
    right: -8px;
    top: 50%;
    margin-top: -8px;
    margin-left: 0;
    border-right: none;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.vmpfence-status-modal.arrow-right::before {
    bottom: auto;
    left: auto;
    right: -9px;
    top: 50%;
    margin-top: -9px;
    margin-left: 0;
    border-right: none;
    border-left: 9px solid #ddd;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    z-index: 1;
}

.vmpfence-modal-content {
    padding: 0;
}

.vmpfence-modal-header {
    background: #f7f7f7;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 4px 4px 0 0;
}

.vmpfence-modal-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vmpfence-modal-body {
    padding: 16px;
    display: flex;
    gap: 16px;
}

.vmpfence-modal-circle-container {
    flex-shrink: 0;
}

.vmpfence-modal-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.vmpfence-modal-percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.vmpfence-modal-info {
    flex: 1;
}

.vmpfence-modal-info h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.vmpfence-modal-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.vmpfence-status-list {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
}

.vmpfence-status-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.vmpfence-status-list li strong {
    color: #333;
    font-weight: 600;
    min-width: 35px;
    flex-shrink: 0;
}

.vmpfence-status-list li span {
    flex: 1;
}

.vmpfence-modal-help {
    margin: 12px 0 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.vmpfence-modal-help a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
}

.vmpfence-modal-help a:hover {
    text-decoration: underline;
}

.vmpfence-modal-complete {
    margin-bottom: 12px;
}

.vmpfence-modal-complete p {
    color: #46b450;
}

/* Color variations */
.vmpfence-modal-circle.status-red #vmpfence-modal-progress {
    stroke: #9e0000;
}

.vmpfence-modal-circle.status-orange #vmpfence-modal-progress {
    stroke: #fcb214;
}

.vmpfence-modal-circle.status-green #vmpfence-modal-progress {
    stroke: #16bc9b;
}

.vmpfence-modal-circle.status-gray #vmpfence-modal-progress {
    stroke: #ececec;
}
