/* LexiDensity Main Container */
.lexidensity-container {
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border: 2px solid #00e5ff; /* Light Neon Blue */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000000; /* Deep black text */
    overflow: hidden;
}

/* Header */
.ld-header {
    background: #00e5ff; /* Light Neon Blue */
    padding: 15px 20px;
    text-align: center;
}

.ld-header h2 {
    margin: 0;
    color: #000000; /* Black text on neon background */
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Body Layout */
.ld-body {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.ld-input-section, .ld-results-section {
    flex: 1 1 45%;
    min-width: 300px;
}

/* Inputs */
.ld-input-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #111111;
}

.ld-input-section input, 
.ld-input-section textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    color: #000000;
    background: #fdfdfd;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.ld-input-section input:focus, 
.ld-input-section textarea:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

/* Results Section */
.ld-results-section h3 {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 2px solid #00e5ff;
    padding-bottom: 5px;
    color: #000000;
}

.ld-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.ld-stat-box {
    background: #f5f5f5;
    padding: 15px;
    border-left: 4px solid #00e5ff;
    border-radius: 4px;
    text-align: center;
}

.ld-stat-box h4 {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
}

.ld-stat-box span {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

/* Target Keyword Box */
.ld-target-box {
    background: #f9f9f9;
    padding: 15px;
    border: 1px dashed #00e5ff;
    margin-bottom: 20px;
    font-weight: bold;
    color: #000000;
}

/* Density Table */
.ld-density-table {
    width: 100%;
    border-collapse: collapse;
}

.ld-density-table th, 
.ld-density-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    color: #000000;
}

.ld-density-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.ld-density-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ld-body {
        flex-direction: column;
    }
}