/**
 * Download Box Pro - Key Manager Customer Frontend CSS
 */

/* My Licenses Page */
.dbpro-my-licenses {
    padding: 20px 0;
}

.dbpro-my-licenses h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

/* Licenses Grid */
.dbpro-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* License Card */
.dbpro-license-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dbpro-license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Status borders */
.dbpro-license-card.dbpro-status-active {
    border-color: #10b981;
}

.dbpro-license-card.dbpro-status-expiring {
    border-color: #f59e0b;
}

.dbpro-license-card.dbpro-status-expired {
    border-color: #ef4444;
}

/* Card Header */
.dbpro-license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dbpro-license-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.dbpro-license-package-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Card Body */
.dbpro-license-card-body {
    padding: 20px;
}

.dbpro-license-key-wrapper {
    margin-bottom: 20px;
}

.dbpro-license-key-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.dbpro-license-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
}

.dbpro-license-key-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    word-break: break-all;
}

.dbpro-copy-btn {
    padding: 6px 14px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.dbpro-copy-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.dbpro-copy-btn.dbpro-copied {
    background: #10b981;
}

/* License Details */
.dbpro-license-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbpro-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.dbpro-detail-row:last-child {
    border-bottom: none;
}

.dbpro-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.dbpro-detail-value {
    font-size: 14px;
    color: #1f2937;
}

.dbpro-detail-value a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.dbpro-detail-value a:hover {
    text-decoration: underline;
}

/* Card Footer */
.dbpro-license-card-footer {
    padding: 12px 20px;
    font-size: 13px;
    line-height: 1.5;
}

.dbpro-license-card-footer.dbpro-warning {
    background: #fef3c7;
    color: #92400e;
    border-top: 1px solid #fcd34d;
}

.dbpro-license-card-footer.dbpro-error {
    background: #fee2e2;
    color: #991b1b;
    border-top: 1px solid #fca5a5;
}

/* Help Section */
.dbpro-licenses-help {
    background: #f0f4ff;
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.dbpro-licenses-help h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1e40af;
}

.dbpro-licenses-help ol {
    margin: 0 0 20px;
    padding-left: 25px;
    color: #1f2937;
}

.dbpro-licenses-help ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.dbpro-help-note {
    margin: 0;
    padding: 15px;
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e40af;
}

/* Order Details License Box */
.dbpro-license-details {
    margin: 30px 0;
    padding: 25px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
}

.dbpro-license-details h2 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1f2937;
}

.dbpro-license-box {
    background: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
}

.dbpro-license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dbpro-license-info {
    padding: 20px;
}

.dbpro-info-item {
    margin-bottom: 10px;
    font-size: 14px;
    color: #4b5563;
}

.dbpro-info-item strong {
    color: #1f2937;
    margin-right: 5px;
}

.dbpro-license-warning {
    padding: 15px 20px;
    background: #fef3c7;
    border-top: 1px solid #fcd34d;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .dbpro-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .dbpro-license-key-display {
        flex-direction: column;
    }
    
    .dbpro-copy-btn {
        width: 100%;
    }
}

/* Empty State */
.woocommerce-message {
    padding: 20px;
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    color: #1e40af;
}
