/* Dedicated Single Calculator Card */
.pm-calc-card {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 14px;
    padding: 24px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #1e293b;
}

.pm-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-svg-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.pm-calc-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.pm-badge {
    background: rgba(5, 104, 57, 0.16);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(5, 104, 57, 0.45);
}

.pm-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.pm-sub-panel {
    background: #1e293b;
    padding: 16px;
    border-radius: 10px;
}

.pm-sub-panel h4 {
    margin: 0 0 12px 0;
    color: #38bdf8;
    font-size: 1rem;
}

.pm-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.pm-input-group label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.pm-calc-card input,
.pm-calc-card select {
    background: #020617;
    border: 1px solid #334155;
    color: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.pm-calc-card input:focus,
.pm-calc-card select:focus {
    border-color: #056839;
}

.pm-btn {
    background: #056839;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.pm-btn:hover {
    background: #04532d;
}

.pm-result-box {
    margin-top: 18px;
    background: #1e293b;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #056839;
}

.pm-res-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #34d399;
}

.pm-res-main span {
    font-size: 0.95rem;
    color: #cbd5e1;
    font-weight: 500;
}

.pm-res-sub {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.pm-poss-bar-wrap {
    margin-top: 18px;
}

.pm-poss-labels {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.pm-poss-bar {
    height: 18px;
    background: #1e293b;
    border-radius: 9px;
    overflow: hidden;
}

.pm-poss-fill {
    height: 100%;
    background: #056839;
    transition: width 0.3s ease;
}

/* [pm_all_calculators] Directory: Fixed Search + 5 White Cards */
.pm-directory-wrap {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pm-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-search-box:focus-within {
    border-color: #056839;
    box-shadow: 0 0 0 3px rgba(5, 104, 57, 0.12);
}

.pm-search-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.pm-search-svg {
    width: 19px;
    height: 19px;
    display: block;
}

.pm-search-box input.pm-search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 13px 4px !important;
    margin: 0 !important;
    font-size: 0.95rem;
    outline: none !important;
    box-shadow: none !important;
}

.pm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.pm-tool-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pm-tool-card:hover {
    transform: translateY(-3px);
    border-color: #056839;
    box-shadow: 0 8px 20px rgba(5, 104, 57, 0.12);
}

.pm-tool-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pm-tool-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(5, 104, 57, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-tool-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.pm-tool-desc {
    margin: 0 0 16px 0;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.45;
    flex-grow: 1;
}

.pm-open-btn {
    display: inline-block;
    text-align: center;
    background: #056839;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.pm-open-btn:hover {
    background: #04532d;
    color: #ffffff !important;
}

.pm-no-results {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    margin-top: 14px;
    font-weight: 500;
}