/* ============================================
   PHARMACY ASA - LICENSE STYLES
   ============================================
   Author: YRXJN
   Created: 10/28/2025
   Description: Styles for license system components
   ============================================ */

/* ---- SIDEBAR LICENSE STATUS ---- */
.sidebar-license-status {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-license-status:hover {
    transform: translateY(-2px);
}

.license-badge-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.license-badge-small.verified {
    background: linear-gradient(135deg, #F4973F 0%, rgb(206, 115, 30) 100%);
}

.license-badge-small.expired {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.license-badge-small.suspended {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.license-badge-small.invalid {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.license-badge-small i {
    font-size: 1rem;
}

/* ---- LICENSE TOOLTIP ---- */
.license-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.sidebar-license-status:hover .license-tooltip {
    opacity: 1;
    visibility: visible;
    margin-bottom: 15px;
}

.license-tooltip-content {
    background: #ffffff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    text-align: left;
    white-space: nowrap;
}

.license-tooltip-content strong {
    font-size: 1rem;
    color: #2C5B73;
    display: block;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.license-tooltip-content small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.85rem;
}

.license-tooltip-content i {
    width: 16px;
    text-align: center;
    margin-right: 6px;
}

.license-tooltip-content .text-warning {
    color: #ffc107 !important;
}

.license-tooltip-content .text-danger {
    color: #dc3545 !important;
}

/* Tooltip arrow */
.license-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}

/* ---- MOBILE ADJUSTMENTS ---- */
@media (max-width: 768px) {
    .license-tooltip {
        left: 0;
        transform: translateX(0);
        right: 0;
    }

    .license-tooltip-content {
        min-width: auto;
        max-width: 280px;
        margin: 0 auto;
    }

    .license-tooltip::after {
        left: 50%;
    }
}

