/* aocr - All in One Call Refsam - Style Sheet */

#aocr-call-floating {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.aocr-call-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.aocr-call-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.aocr-call-button img {
    width: 40px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    padding: 2px;
}

@media (max-width: 1024px) {
    .aocr-call-button img {
        width: 40px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        padding: 1px;
    }
}

.aocr-call-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
    background: #2196F3;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.aocr-call-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #2196F3;
}

.aocr-call-button:hover + .aocr-call-tooltip {
    opacity: 1;
    visibility: visible;
}

.aocr-call-popup {
    position: absolute;
    bottom: 40px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    z-index: 98;
}

@media (max-width: 1024px) {
    .aocr-call-popup {
        position: absolute;
        bottom: 40px;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
        z-index: 98;
    }
}

.aocr-call-popup.show {
    display: flex;
    animation: aocrSlideUp 0.3s ease;
}

@keyframes aocrSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aocr-call-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    animation: aocrOptionAppear 0.3s ease forwards;
}

.aocr-call-option:nth-child(1) { animation-delay: 0.1s; }
.aocr-call-option:nth-child(2) { animation-delay: 0.2s; }
.aocr-call-option:nth-child(3) { animation-delay: 0.3s; }
.aocr-call-option:nth-child(4) { animation-delay: 0.4s; }

@keyframes aocrOptionAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aocr-call-option.aocr-email {
    background: #ea4335;
    color: white;
}

.aocr-call-option.aocr-whatsapp {
    background: #25d366;
    color: white;
}

.aocr-call-option.aocr-messenger {
    background: #0084ff;
    color: white;
}

.aocr-call-option:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #aocr-call-floating {
        bottom: 20px;
        right: 20px;
    }
    
    .aocr-call-button {
        position: relative;
        width: 40px;
        height: 40px;
        margin-top: -5px;
    }
    
    .aocr-call-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

.aocr-call-button.active {
    transform: scale(1.1);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.aocr-call-option.aocr-urgent-message {
    background-color: #0073e6;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.aocr-call-option.aocr-urgent-message:hover {
    transform: scale(1.1);
}

.aocr-call-option.aocr-urgent-message::after {
    content: 'رسالة عاجلة';
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    transform: translateY(-50%);
    background: #e60000;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.aocr-call-option.aocr-urgent-message:hover::after {
    opacity: 1;
    visibility: visible;
}

.aocr-urgent-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #fff;
    border: 2px solid #0073aa;
    padding: 20px;
    z-index: 9999;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.aocr-urgent-popup h3 {
    margin-top: 0;
    font-size: 18px;
    color: #0073aa;
}

.aocr-urgent-popup input,
.aocr-urgent-popup textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.aocr-urgent-popup textarea {
    resize: vertical;
    min-height: 80px;
}

.aocr-urgent-popup button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.aocr-urgent-popup button:hover {
    background: #005a87;
}

.aocr-urgent-close {
    position: absolute;
    top: 10px;
    left: 15px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

.aocr-urgent-close:hover {
    color: #e60000;
}

.widefat.fixed.striped tbody tr:hover {
    background-color: #f0f8ff;
    transition: background-color 0.3s ease;
}

/* رسائل النجاح والخطأ */
.aocr-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 10000;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.aocr-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aocr-success-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.aocr-success-popup button {
    margin-top: 15px;
    background: #fff;
    color: #28a745;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.aocr-success-popup button:hover {
    background: #f0f0f0;
}

/* نافذة عرض الرسالة */
.aocr-message-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.aocr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.aocr-modal-header h2 {
    margin: 0;
    color: #0073aa;
}

.aocr-modal-close {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.aocr-modal-close:hover {
    background: #b92c2c;
}

.aocr-modal-content table {
    border: none;
}

.aocr-modal-content td {
    border: none;
    padding: 8px;
    vertical-align: top;
}

.aocr-modal-content td:first-child {
    width: 120px;
    font-weight: bold;
}