/* Perfect License Manager - Admin Styles - Dark Theme */

* {
    box-sizing: border-box;
}

#wpbody-content {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

.plm-dashboard {
    max-width: 1400px;
    background: #1a1a1a;
    padding: 20px;
}

/* Statistics Grid */
.plm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.plm-stat-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #ccc;
    transition: all 0.3s ease;
}

.plm-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(100, 100, 100, 0.2);
}

.plm-stat-card.plm-stat-total { border-left-color: #0073aa; }
.plm-stat-card.plm-stat-active { border-left-color: #46b450; }
.plm-stat-card.plm-stat-cancelled { border-left-color: #dc3545; }
.plm-stat-card.plm-stat-expired { border-left-color: #ffb900; }

.plm-stat-icon {
    font-size: 36px;
    line-height: 1;
}

.plm-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: #fff;
}

.plm-stat-label {
    font-size: 14px;
    color: #b0b0b0;
}

/* Quick Actions */
.plm-quick-actions {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 30px 0;
    border: 1px solid #3a3a3a;
}

.plm-quick-actions h2 {
    margin-top: 0;
    color: #fff;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 12px;
}

.plm-quick-actions .button {
    margin-right: 10px;
    background: #0073aa !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.plm-quick-actions .button:hover {
    background: #005a87 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Recent Licenses */
.plm-recent-licenses {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 30px 0;
    border: 1px solid #3a3a3a;
}

.plm-recent-licenses h2 {
    color: #fff;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 12px;
}

/* Status Badges */
.plm-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.plm-status-active {
    background: rgba(70, 180, 80, 0.15);
    color: #46b450;
}

.plm-status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #ff7675;
}

.plm-status-expired {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.plm-status-blocked {
    background: rgba(220, 53, 69, 0.2);
    color: #ff7675;
}

/* Modal */
.plm-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.plm-modal-content {
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    border: 1px solid #3a3a3a;
    color: #e0e0e0;
}

.plm-modal-content h2 {
    color: #fff;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 12px;
}

.plm-modal-close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plm-modal-close:hover {
    color: #0073aa;
}

/* Domain Presets */
.plm-domain-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.plm-preset-btn {
    min-width: 50px;
    background: #3a3a3a !important;
    color: #e0e0e0 !important;
    border: 1px solid #4a4a4a !important;
}

.plm-preset-btn.active {
    background: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* License Result */
#plm-license-result {
    background: rgba(0, 115, 170, 0.1);
    border: 1px solid rgba(0, 115, 170, 0.3);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    color: #0073aa;
}

#plm-license-result h3 {
    margin-top: 0;
    color: #0073aa;
}

#plm-license-result .plm-license-key {
    background: #2d2d2d;
    padding: 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0073aa;
    border: 1px solid #3a3a3a;
}

#plm-license-result .plm-license-info {
    margin: 12px 0;
    color: #e0e0e0;
}

/* Table Styles - FORCE ALL */
table.wp-list-table,
.wp-list-table,
#plm-licenses-table,
table#plm-licenses-table {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f) !important;
    border: 3px solid #4A4A4A !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

table.wp-list-table th,
.wp-list-table th,
#plm-licenses-table th,
table#plm-licenses-table th {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f) !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #4A4A4A !important;
    padding: 12px !important;
}

table.wp-list-table td,
.wp-list-table td,
#plm-licenses-table td,
table#plm-licenses-table td {
    border-bottom: 1px solid #3a3a3a !important;
    color: #e0e0e0 !important;
    padding: 12px !important;
}

/* License Key - Keep in one line */
table.wp-list-table td code,
.wp-list-table td code,
#plm-licenses-table td code,
table#plm-licenses-table td code {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
    max-width: 100% !important;
}

/* Actions Column - Align with other columns */
table.wp-list-table td[style*="display: flex"],
.wp-list-table td[style*="display: flex"],
#plm-licenses-table td[style*="display: flex"],
table#plm-licenses-table td[style*="display: flex"] {
    vertical-align: middle !important;
    padding: 12px !important;
    display: table-cell !important;
}

table.wp-list-table tbody tr,
.wp-list-table tbody tr,
#plm-licenses-table tbody tr,
table#plm-licenses-table tbody tr {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f) !important;
}

table.wp-list-table tbody tr:hover,
.wp-list-table tbody tr:hover,
#plm-licenses-table tbody tr:hover,
table#plm-licenses-table tbody tr:hover {
    background: rgba(74, 74, 74, 0.3) !important;
}

/* Remove text-shadow and box-shadow from all buttons */
.button,
button,
input[type="button"],
input[type="submit"],
.plm-view-license,
.plm-edit-license,
.plm-scan-license,
.plm-deactivate-license,
.plm-activate-license,
.plm-delete-license,
button[style*="background-color"] {
    text-shadow: none !important;
    box-shadow: none !important;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.plm-view-license:hover,
.plm-edit-license:hover,
.plm-scan-license:hover,
.plm-deactivate-license:hover,
.plm-activate-license:hover,
.plm-delete-license:hover {
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 782px) {
    .plm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .plm-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Test Platform Button */
.plm-test-platform {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transition: all 0.3s ease !important;
}

.plm-test-platform:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
}

.plm-test-platform:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.plm-platform-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}
