/**
 * WooCommerce Label Printer CSS
 */

/* Admin butonları */
.wlp-print-single {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    margin-left: 5px;
    padding: 4px 8px !important;
    min-height: auto !important;
    line-height: 1 !important;
}

.wlp-print-single:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
    color: #fff !important;
}

.wlp-print-single .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Loading durumu */
.wlp-loading {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

.wlp-loading:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: wlp-spin 1s linear infinite;
    margin-right: 5px;
    vertical-align: middle;
}

@keyframes wlp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bulk action loading */
.wlp-bulk-loading {
    position: relative;
}

.wlp-bulk-loading:after {
    content: 'Etiketler hazırlanıyor...';
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
}

/* Sipariş listesi sütunu */
.column-order_actions {
    width: 120px;
}

/* Admin notice styling */
.notice.wlp-notice {
    border-left-color: #2271b1;
}

.notice.wlp-notice p {
    margin: 0.5em 0;
}

/* Etiket önizleme modal (gelecek sürüm için) */
.wlp-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.wlp-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: auto;
}

.wlp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.wlp-modal-title {
    margin: 0;
    font-size: 18px;
}

.wlp-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wlp-modal-close:hover {
    color: #000;
}

/* Responsive */
@media (max-width: 782px) {
    .wlp-print-single {
        padding: 6px 10px !important;
        font-size: 13px;
    }
    
    .wlp-print-single .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}

/* Print stilleri */
@media print {
    body * {
        visibility: hidden;
    }
    
    .wlp-label-print,
    .wlp-label-print * {
        visibility: visible;
    }
    
    .wlp-label-print {
        position: absolute;
        left: 0;
        top: 0;
        width: 105mm;
        height: 148mm;
    }
}

/* Etiket önizleme */
.wlp-label-preview {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    max-width: 400px;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
}

.wlp-label-preview h4 {
    margin: 0 0 8px 0;
    padding: 4px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.wlp-label-preview .label-section {
    margin-bottom: 10px;
}

.wlp-label-preview .label-section:last-child {
    margin-bottom: 0;
}

.wlp-label-preview .section-title {
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 3px;
}

.wlp-label-preview .section-content {
    font-size: 11px;
    line-height: 1.3;
}

/* Tooltip */
.wlp-tooltip {
    position: relative;
    display: inline-block;
}

.wlp-tooltip .wlp-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 3px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
}

.wlp-tooltip .wlp-tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.wlp-tooltip:hover .wlp-tooltiptext {
    visibility: visible;
    opacity: 1;
}
