/* Reset */
.license-mxt-wrap {
    margin: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.lmx-header {
    background: linear-gradient(135deg, #2271b1, #135e96);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lmx-header-content h1 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.lmx-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lmx-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.lmx-subtitle {
    margin: 10px 0 0;
    opacity: 0.9;
}

/* Dashboard Stats */
.lmx-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.lmx-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.2s;
}

.lmx-stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.total {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-icon.active {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stat-icon.validated {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-icon .dashicons {
    color: white;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.stat-content h3 {
    margin: 0;
    font-size: 28px;
    color: #1d2327;
    font-weight: 600;
}

.stat-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 6px;
    background: #f0f0f1;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    transition: width 0.3s ease;
}

/* Cards */
.lmx-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.lmx-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Form */
.lmx-form {
    padding: 25px;
}

.lmx-form-group {
    margin-bottom: 20px;
}

.lmx-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
}

.lmx-button {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.lmx-button:hover {
    background: #135e96;
}

/* Table */
.lmx-table-container {
    overflow-x: auto;
}

.lmx-table {
    width: 100%;
    border-collapse: collapse;
}

.lmx-table th,
.lmx-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f1;
}

.lmx-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.license-key-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #2271b1;
    padding: 4px;
    border-radius: 4px;
}

.lmx-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lmx-status.active {
    background: #d1fae5;
    color: #065f46;
}

.lmx-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* Search and Filter Styles */
.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lmx-search {
    position: relative;
    display: flex;
    align-items: center;
}

.lmx-search .dashicons {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #646970;
    pointer-events: none;
    z-index: 1;
}

.lmx-search-input {
    padding: 8px 12px 8px 35px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    width: 250px;
    height: 40px;
}

.lmx-select {
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    min-width: 150px;
    height: 40px;
}

/* Fix placeholder text alignment */
.lmx-search-input::placeholder {
    position: relative;
    z-index: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #646970;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f0f0f1;
    color: #2271b1;
}

.action-btn.delete:hover {
    color: #dc2626;
}

/* Success Message Style */
.notice-success {
    background: #d1fae5 !important;
    border-left-color: #059669 !important;
    color: #065f46 !important;
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.notice-success p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 782px) {
    .lmx-dashboard {
        grid-template-columns: 1fr;
    }

    .header-right {
        flex-direction: column;
    }

    .lmx-search-input {
        width: 100%;
    }
}