.hh-dashboard {
    background: #f6f9fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 10px 20px 0 2px;
}

.hh-header {
    background: #fff;
    padding: 20px 30px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.hh-header h1 {
    margin: 0;
    font-size: 24px;
    color: #1d2327;
    font-weight: 400;
}

.hh-container {
    margin: 0 auto;
    padding: 0 20px;
}

.hh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.hh-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.hh-card-header {
    /* Updated gradient for a softer, more modern look */
    background: linear-gradient(135deg, #1d2327 0%, #35383f 100%);
    padding: 18px 25px;
    color: #ffffff !important;
    display: flex;
    /* Enable flex for title and info icon alignment */
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Needed for tooltip positioning */
}

.hh-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff !important;
    line-height: 1.2;
}

.hh-info-icon {
    /* Style for the 'i' icon (dashicons-info) */
    cursor: help;
    color: #a8d5ff;
    /* Light blue color */
    font-size: 18px;
    margin-left: 10px;
    transition: color 0.2s;
    position: relative;
    z-index: 10;
}

.hh-info-icon:hover {
    color: #fff;
    /* White on hover */
}

/* Custom Tooltip Styling */
.hh-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 250px;
    padding: 10px;
    background: #fff;
    /* White background */
    color: #1d2327;
    /* Dark text */
    border: 1px solid #007cba;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.hh-info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

/* End Custom Tooltip Styling */


.hh-card-header .dashicons {
    font-size: 20px;
    color: #ffffff;
}

.hh-card-body {
    flex-grow: 1;
    padding: 28px 25px;
    display: flex;
    flex-direction: column;
}

.hh-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.hh-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Use a neutral tone */
    background: #f0f4f7;
}

.hh-feature-icon.active {
    /* Use a success green */
    background: #e6ffed;
}

.hh-feature-icon .dashicons {
    font-size: 20px;
    color: #1d2327;
    /* Default icon color */
}

.hh-feature-icon.active .dashicons {
    color: #28a745;
    /* Success color */
}

.hh-feature-content h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    /* Bolder title */
    color: #1d2327;
}

.hh-feature-content p {
    margin: 0;
    font-size: 14px;
    /* Slightly larger font */
    color: #555;
    line-height: 1.6;
}

.hh-action-button {
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    text-align: center;
    min-width: 140px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hh-action-button.active {
    background: #28a745;
    color: #fff;
    border: 2px solid #28a745;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.hh-action-button.inactive {
    background: #f1f1f1;
    color: #666;
    border: 2px solid #ddd;
}

.hh-action-button:hover {
    transform: scale(1.03);
}

/* Configuration Container (Applies to both HSTS and CSP) */
.hh-csp-config-container,
.hh-hsts-config-container {
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* CSP Header Styling */
.hh-csp-header {
    background: linear-gradient(135deg, #007cba 0%, #005f90 100%);
    border-radius: 12px 12px 0 0;
}

/* CSP Body Styling */
.hh-csp-config {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 0 0 12px 12px;
    border-top: none;
}

/* HSTS Header Styling (Same as CSP header but different color if needed) */
.hh-hsts-header {
    /* Using a subtle difference for HSTS */
    background: linear-gradient(135deg, #f7a627 0%, #d48c1a 100%);
    border-radius: 12px 12px 0 0;
}

/* HSTS Body Styling */
.hh-hsts-config {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 0 0 12px 12px;
    border-top: none;
}

.hh-hsts-config .form-table th,
.hh-hsts-config .form-table td {
    padding: 15px 10px;
    /* Tidy up padding in form table */
}

/* Styles for CSP Presets */

.hh-presets {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hh-preset-btn {
    font-size: 12px !important;
    height: 30px !important;
    line-height: 1 !important;
    padding: 0 10px !important;
}

.hh-footer {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 14px;
}

.hh-footer a {
    color: #2271b1;
    text-decoration: none;
}

.hh-footer a:hover {
    text-decoration: underline;
}