/* License Keys My Account Styles */
.licensemasterx51-my-account {
    margin: 0;
    padding: 0;
}

/* Header Section */
.license-keys-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e1e5e9;
}

.license-keys-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e1e1e;
}

.license-keys-title .dashicons {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.license-keys-description {
    margin: 0;
    color: #646970;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Grid Layout */
.license-keys-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .license-keys-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
}

/* License Key Cards */
.license-key-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.license-key-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #c3c4c7;
}

.license-key-card.expired {
    border-left: 4px solid #d63638;
    background: #fef7f7;
}

/* Card Header */
.license-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.license-product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.license-product-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1e1e;
}

.license-product-title .dashicons {
    color: var(--color-primary);
    font-size: 1rem;
}

.license-key-id {
    background: #f0f0f1;
    color: #646970;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Status Badges */
.license-status-badge {
    display: flex;
    align-items: center;
}

.status-active,
.status-expired {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    background: #d7f5d0;
    color: #2d5016;
}

.status-active .dashicons {
    color: #2d5016;
    font-size: 0.875rem;
}

.status-expired {
    background: #f7dcdc;
    color: #8b1e1e;
}

.status-expired .dashicons {
    color: #8b1e1e;
    font-size: 0.875rem;
}

/* License Key Section */
.license-key-section {
    margin-bottom: 1rem;
}

.license-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e1e1e;
}

.license-field-label .dashicons {
    color: #646970;
    font-size: 0.875rem;
}

.license-key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

.licensemasterx51-partial-key,
.licensemasterx51-full-key {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1e1e1e;
    background: none;
    border: none;
    flex: 1;
    letter-spacing: 0.025em;
}

.license-toggle-btn,
.license-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary) !important;
    color: var(--color-white) !important;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-toggle-btn:hover,
.license-copy-btn:hover {
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.license-toggle-btn .dashicons,
.license-copy-btn .dashicons {
    font-size: 0.875rem;
}

.license-copy-btn {
    padding: 0.375rem;
    min-width: auto;
}

/* Statistics Grid */
.license-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.license-stat {
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-header .dashicons {
    color: #646970;
    font-size: 0.875rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 0.5rem;
}

.stat-value.warning {
    color: #b32d2e;
}

.stat-value.expired {
    color: #d63638;
}

/* Progress Bar */
.activation-progress {
    margin-top: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00a32a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: #dba617;
}

/* Activations Section */
.license-activations {
    border-top: 1px solid #e1e5e9;
    padding-top: 1rem;
}

.activations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.activations-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e1e1e;
}

.activations-title .dashicons {
    color: #646970;
    font-size: 0.875rem;
}

.toggle-activations {
    background: none !important;
    border: none !important;
    padding: 0.25rem !important;
    cursor: pointer;
    color: var(--gradient-primary) !important;
    transition: color 0.2s ease;
    display: inline-flex !important;
}

.toggle-activations:hover {
    background: var(--gradient-primary) !important;
    color: var(--color-white) !important;
}

.toggle-activations .dashicons {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.toggle-activations.active .dashicons {
    transform: rotate(180deg);
}

.activations-list {
    display: none;
    gap: 0.75rem;
    flex-direction: column;
}

.activations-list.show {
    display: flex;
}

.activation-item {
    padding: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.activation-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.machine-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e1e1e;
}

.machine-name .dashicons {
    color: #646970;
    font-size: 0.875rem;
}

.activation-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #646970;
}

.activation-time,
.activation-ip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.activation-time .dashicons,
.activation-ip .dashicons {
    font-size: 0.75rem;
}

/* No Activations */
.no-activations {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    color: #646970;
    font-size: 0.875rem;
}

.no-activations .dashicons {
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* No Licenses Found */
.no-licenses-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem;
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.no-licenses-icon {
    width: 4rem;
    height: 4rem;
    background: #f0f6fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.no-licenses-icon .dashicons {
    font-size: 2rem;
    color: var(--color-primary);
}

.no-licenses-found h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #1e1e1e;
}

.no-licenses-found p {
    margin: 0 0 1.5rem 0;
    color: #646970;
    max-width: 400px;
}

/* Copy Notification */
.license-copy-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #00a32a;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.license-copy-notification .dashicons {
    font-size: 0.875rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .license-key-card {
        padding: 1rem;
    }
    
    .license-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .license-product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .license-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .license-key-display {
        flex-wrap: wrap;
    }
    
    .activation-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .license-copy-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    body.dark-mode .license-key-card {
        background: #1e1e1e;
        border-color: #3c434a;
        color: #f0f0f1;
    }
    
    body.dark-mode .license-key-display {
        background: #2c3338;
        border-color: #3c434a;
    }
    
    body.dark-mode .license-stat {
        background: #2c3338;
        border-color: #3c434a;
    }
}

/* Print styles */
@media print {
    .license-toggle-btn,
    .license-copy-btn,
    .toggle-activations {
        display: none !important;
    }
    
    .licensemasterx51-full-key {
        display: inline !important;
    }
    
    .licensemasterx51-partial-key {
        display: none !important;
    }
    
    .activations-list {
        display: flex !important;
    }
}