/* Table Header */
.udm-table-header,.udm-domain-item  {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 20px;
    background: #FFF;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #d5d8dc;
    align-items: center;
    transition: all .3s;
    color: #515861;
}

.udm-header-domain {
    flex: 1;
    text-align: right;
}

.udm-header-date {
    width: 150px;
    text-align: center;
}

.udm-header-actions {
    width: 120px;
    text-align: center;
}

.udm-domains-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.udm-domain-item:last-child {
    border-radius: 0 0 6px 6px;
}

.udm-domain-item:hover {
}

.udm-domain-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
    word-break: break-all;
}

/* License Display Styles */

.udm-license-row {
    display: flex;
    width: 100%;
    gap: 20px;
    padding: 20px;
    background: #FFF;
    border-radius: 6px;
    border: 1px solid #d5d8dc;
    align-items: center;
    transition: all .3s;
    color: #515861;
}

.udm-license-key-section {
    flex: 4;
    display: flex;
    flex-direction: column;
}

.udm-active-domains-section {
    flex: 1;
    text-align: center;
}

.udm-license-label {
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: right;
}

.udm-active-domains-section .udm-license-label {
    text-align: center;
}

.udm-license-key {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    word-break: break-all;
    font-size: 14px;
    direction: ltr;
    text-align: center;
}

.udm-domains-count {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 5px;
}

.udm-status-active {
    color: #28a745;
    font-weight: 600;
}

.udm-status-expired {
    color: #dc3545;
    font-weight: 600;
}

.udm-status-revoked {
    color: #6c757d;
    font-weight: 600;
}

.udm-no-license {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.udm-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
    direction: ltr;
    text-align: right;
    padding-right: 10px;
}

.udm-domain-date {
    width: 150px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.udm-domain-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    min-width: 80px;
    text-align: center;
    display: inline-block;
}





.udm-domain-date {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.udm-domain-actions {
    width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}



.udm-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.udm-delete-btn:hover {
    background-color: #c0392b;
}

.udm-delete-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.udm-no-domains {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
    font-size: 16px;
    background: white;
    border-radius: 6px;
    border: 1px solid #d5d8dc;
    margin-bottom: 20px;
}

.udm-error {
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.udm-success {
    background: #27ae60;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Loading state */
.udm-domain-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .udm-table-header,
    .udm-domain-item {
        flex-direction: column;
        text-align: center;
    }
    
    .udm-header-domain,
    .udm-header-date,
    .udm-header-actions,
    .udm-domain-name,
    .udm-domain-date,
    .udm-domain-actions {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .udm-domain-name {
        font-size: 14px;
        padding-right: 0;
    }
    
    .udm-table-header {
        display: none;
    }
    
    .udm-domain-item {
        border-radius: 6px;
        margin-bottom: 15px;
        border-top: 1px solid #d5d8dc;
    }
    
    .udm-domain-item:last-child {
        border-radius: 6px;
    }
}

.udm-domain-item.loading .udm-delete-domain {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .udm-domains-container {
        margin: 10px;
        padding: 15px;
    }
    
    .udm-domain-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .udm-domain-info {
        width: 100%;
    }
    
    .udm-domain-actions {
        width: 100%;
        justify-content: center;
    }
    
    .udm-delete-domain {
        padding: 12px 24px;
        font-size: 16px;
        min-width: 120px;
    }
    
    .udm-domain-status {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .udm-domain-name {
        font-size: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .udm-domains-container {
        margin: 10px;
    }
    
    .udm-domain-item {
        padding: 15px;
    }
    
    .udm-delete-domain {
        width: 100%;
        padding: 12px;
    }
}

/* RTL Support */
.rtl .udm-domain-name {
    direction: rtl;
    text-align: right;
}

.rtl .udm-domain-info {
    text-align: right;
}

/* Animation for domain removal */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.udm-domain-item.removing {
    animation: fadeOut 0.5s ease-out forwards;
}