/* 
 * Grow A Garden Calculator Styles
 * Exact match to reference site with enhanced text visibility
 * HIGH SPECIFICITY TO OVERRIDE WORDPRESS THEMES
 */

/* CRITICAL: Force all text to be visible - highest priority rules first */
html body .gag-pwc-container,
html body .gag-pwc-container *,
html body .gag-pwc-container h1,
html body .gag-pwc-container h2,
html body .gag-pwc-container h3,
html body .gag-pwc-container p,
html body .gag-pwc-container span,
html body .gag-pwc-container div,
html body .gag-pwc-container label,
html body .gag-pwc-container td,
html body .gag-pwc-container th,
html body .gag-pwc-container button,
html body .gag-pwc-container input,
html body .gag-pwc-container select {
    color: inherit !important;
}

html body .gag-pwc-container .gag-pwc-title,
html body .gag-pwc-container .gag-pwc-calc-title,
html body .gag-pwc-container h1,
html body .gag-pwc-container h2,
html body .gag-pwc-container h3 {
    color: #000000 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
}

html body .gag-pwc-container .gag-pwc-description,
html body .gag-pwc-container .gag-pwc-calc-desc,
html body .gag-pwc-container p {
    color: #1f2937 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-input-group label,
html body .gag-pwc-container label {
    color: #000000 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-input,
html body .gag-pwc-container .gag-pwc-select,
html body .gag-pwc-container .gag-pwc-search,
html body .gag-pwc-container input[type="text"],
html body .gag-pwc-container input[type="number"],
html body .gag-pwc-container select {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
}

html body .gag-pwc-container .gag-pwc-table th,
html body .gag-pwc-container .gag-pwc-table td {
    color: #000000 !important;
}

html body .gag-pwc-container .gag-pwc-summary-value {
    color: #10b981 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn {
    color: #1f2937 !important;
    background-color: #f3f4f6 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn.active {
    color: #ffffff !important;
    background-color: #10b981 !important;
}

:root {
    --primary: #10b981;
    --primary-foreground: #ffffff;
    --background: #ffffff;
    --foreground: #000000;
    --muted: #f4f4f5;
    --muted-foreground: #4b5563;
    --card: #ffffff;
    --card-foreground: #000000;
    --border: #d1d5db;
    --input: #ffffff;
    --ring: #10b981;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
}

/* Force all text to be visible - highest priority */
.gag-pwc-container,
.gag-pwc-container *,
.gag-pwc-container p,
.gag-pwc-container span,
.gag-pwc-container div,
.gag-pwc-container h1,
.gag-pwc-container h2,
.gag-pwc-container h3,
.gag-pwc-container label,
.gag-pwc-container td,
.gag-pwc-container th {
    color: inherit;
}

.gag-pwc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff !important;
    min-height: 100vh;
    color: #000000 !important;
    border-radius: 12px;
}

.gag-pwc-header {
    text-align: center;
    margin-bottom: 30px;
}

.gag-pwc-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000 !important;
    line-height: 1.2;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
}

.gag-pwc-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #1f2937 !important;
    margin: 0;
    padding: 0 20px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: none !important;
}

/* Navigation Tabs - Exact match to reference */
.gag-pwc-nav-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .gag-pwc-nav-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        grid-template-columns: none;
    }
}

.gag-pwc-tab-btn {
    position: relative;
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border: 1px solid #d1d5db !important;
    padding: 12px 20px;
    border-radius: 9999px;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    text-decoration: none;
    text-shadow: none !important;
}

.gag-pwc-tab-btn span {
    color: #1f2937 !important;
    font-weight: inherit;
    text-shadow: none !important;
}

.gag-pwc-tab-btn:hover {
    background: #e5e7eb !important;
    color: #1f2937 !important;
    transform: translateY(-2px);
}

.gag-pwc-tab-btn.active {
    background: #10b981 !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.5);
    border-color: #10b981 !important;
}

.gag-pwc-tab-btn.active span {
    color: #ffffff !important;
    text-shadow: none !important;
}

@media (min-width: 768px) {
    .gag-pwc-tab-btn {
        width: auto;
        min-width: 120px;
    }
}

.gag-pwc-tab-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.gag-pwc-tab-btn.active {
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.gag-pwc-tab-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    position: absolute;
    top: -4px;
    right: -4px;
}

.gag-pwc-tab-content {
    position: relative;
}

.gag-pwc-calculator-tab {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calculator Container - Matching reference */
.gag-pwc-calculator {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 30px;
    color: #000000 !important;
}

@media (min-width: 768px) {
    .gag-pwc-calculator {
        padding: 30px;
    }
}

.gag-pwc-calc-title {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 10px;
    color: #000000 !important;
    line-height: 1.3;
    text-shadow: none !important;
}

.gag-pwc-calc-desc {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #1f2937 !important;
    margin-bottom: 25px;
    line-height: 1.6;
    text-shadow: none !important;
}

/* Inputs Grid - Matching reference */
.gag-pwc-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .gag-pwc-inputs {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.gag-pwc-input-group {
    display: flex;
    flex-direction: column;
}

.gag-pwc-input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000 !important;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: none !important;
}

.gag-pwc-input,
.gag-pwc-select {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 500;
    width: 100%;
}

.gag-pwc-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.gag-pwc-select option {
    color: #000000 !important;
    background: #ffffff !important;
}

.gag-pwc-input:focus,
.gag-pwc-select:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gag-pwc-input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.gag-pwc-input-hint {
    font-size: 0.875rem;
    color: #e5e7eb !important;
    margin-top: 6px;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

/* Item Previews - Larger, more visible */
.gag-pwc-item-preview,
.gag-pwc-pet-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f4f4f5 !important;
    border-radius: 8px;
    border: 1px solid #d1d5db !important;
}

.gag-pwc-item-preview img,
.gag-pwc-pet-preview img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--card);
    padding: 8px;
    border: 2px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gag-pwc-item-preview span,
.gag-pwc-pet-preview span {
    font-weight: 600;
    color: #000000 !important;
    font-size: 1.125rem;
    line-height: 1.5;
    text-shadow: none !important;
}

.gag-pwc-pet-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f4f4f5 !important;
    border-radius: 8px;
    border: 1px solid #d1d5db !important;
}

.gag-pwc-pet-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000 !important;
    font-size: 1rem;
    text-shadow: none !important;
}

/* Results Summary */
.gag-pwc-results {
    margin-top: 30px;
}

.gag-pwc-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: #f4f4f5 !important;
    border-radius: 8px;
    border: 1px solid #d1d5db !important;
}

@media (min-width: 640px) {
    .gag-pwc-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gag-pwc-summary {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gag-pwc-summary-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gag-pwc-summary-label {
    font-size: 0.95rem;
    color: #4b5563 !important;
    font-weight: 600;
    line-height: 1.4;
}

.gag-pwc-summary-value {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: #10b981 !important;
    line-height: 1.2;
}

.gag-pwc-summary-unit {
    font-size: 0.9rem;
    color: #6b7280 !important;
    font-weight: 500;
}

/* Table Container */
.gag-pwc-table-container {
    margin-top: 30px;
}

.gag-pwc-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gag-pwc-table-header h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.3;
    text-shadow: none !important;
}

.gag-pwc-table-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.gag-pwc-search {
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    min-width: 200px;
    color: #000000 !important;
    font-weight: 500;
    background: #ffffff;
}

.gag-pwc-search:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.gag-pwc-search::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.gag-pwc-btn-secondary {
    padding: 10px 18px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #1f2937 !important;
}

.gag-pwc-btn-secondary:hover {
    background: #e4e4e7;
    border-color: #a1a1aa;
}

.gag-pwc-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.gag-pwc-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff !important;
    color: #000000 !important;
}

.gag-pwc-table thead {
    background: #f4f4f5 !important;
}

.gag-pwc-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #000000 !important;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #d1d5db;
    white-space: nowrap;
}

.gag-pwc-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f3f4f6;
    color: #000000 !important;
    font-weight: 500;
}

.gag-pwc-table tbody tr:hover {
    background: var(--muted);
}

.gag-pwc-table tbody tr.gag-pwc-current-age {
    background: #ecfdf5;
    font-weight: 600;
}

.gag-pwc-table tbody tr.gag-pwc-current-age td {
    color: #10b981 !important;
}

.gag-pwc-empty-state {
    text-align: center;
    padding: 50px !important;
    color: #6b7280 !important;
    font-style: italic;
    font-size: 1rem;
}

.gag-pwc-table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.gag-pwc-btn-pagination {
    padding: 10px 18px;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #1f2937 !important;
}

.gag-pwc-btn-pagination:hover:not(:disabled) {
    background: var(--muted);
    border-color: var(--ring);
    color: var(--ring);
}

.gag-pwc-btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#gag-pwc-page-info {
    font-size: 0.95rem;
    color: #4b5563 !important;
    font-weight: 600;
}

.gag-pwc-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Dark Mode Support - Keep white background with black text */
@media (prefers-color-scheme: dark) {
    .gag-pwc-container {
        background: #ffffff !important;
    }
    
    .gag-pwc-title {
        color: #000000 !important;
        background: none !important;
        -webkit-text-fill-color: #000000 !important;
    }
    
    .gag-pwc-description {
        color: #1f2937 !important;
    }
    
    .gag-pwc-calculator {
        background: #ffffff !important;
        border-color: #e5e7eb !important;
    }
    
    .gag-pwc-calc-title {
        color: #000000 !important;
    }
    
    .gag-pwc-calc-desc {
        color: #1f2937 !important;
    }
    
    .gag-pwc-input-group label {
        color: #000000 !important;
    }
    
    .gag-pwc-input,
    .gag-pwc-select,
    .gag-pwc-search {
        background: #ffffff !important;
        border-color: #d1d5db !important;
        color: #000000 !important;
    }
    
    .gag-pwc-input::placeholder,
    .gag-pwc-search::placeholder {
        color: #9ca3af !important;
    }
    
    .gag-pwc-input-hint {
        color: #6b7280 !important;
    }
    
    .gag-pwc-tab-btn {
        background: #f3f4f6 !important;
        color: #1f2937 !important;
    }
    
    .gag-pwc-tab-btn span {
        color: #1f2937 !important;
    }
    
    .gag-pwc-tab-btn:hover {
        background: #e5e7eb !important;
        color: #1f2937 !important;
    }
    
    .gag-pwc-tab-btn.active {
        background: #10b981 !important;
        color: #ffffff !important;
    }
    
    .gag-pwc-tab-btn.active span {
        color: #ffffff !important;
    }
    
    .gag-pwc-item-preview,
    .gag-pwc-pet-preview,
    .gag-pwc-pet-selector,
    .gag-pwc-summary {
        background: #f4f4f5 !important;
        border-color: #d1d5db !important;
    }
    
    .gag-pwc-item-preview span,
    .gag-pwc-pet-preview span {
        color: #000000 !important;
    }
    
    .gag-pwc-summary-label {
        color: #4b5563 !important;
    }
    
    .gag-pwc-summary-value {
        color: #10b981 !important;
    }
    
    .gag-pwc-summary-unit {
        color: #6b7280 !important;
    }
    
    .gag-pwc-table {
        background: #ffffff !important;
    }
    
    .gag-pwc-table thead {
        background: #f4f4f5 !important;
    }
    
    .gag-pwc-table th {
        color: #000000 !important;
        border-bottom-color: #d1d5db !important;
    }
    
    .gag-pwc-table td {
        color: #000000 !important;
        border-bottom-color: #f3f4f6 !important;
    }
    
    .gag-pwc-table tbody tr:hover {
        background: #f3f4f6 !important;
    }
    
    .gag-pwc-table tbody tr.gag-pwc-current-age {
        background: #ecfdf5 !important;
    }
    
    .gag-pwc-table tbody tr.gag-pwc-current-age td {
        color: #10b981 !important;
    }
    
    .gag-pwc-table-wrapper {
        border-color: #e5e7eb !important;
    }
    
    .gag-pwc-btn-secondary,
    .gag-pwc-btn-pagination {
        background: #f3f4f6 !important;
        border-color: #d1d5db !important;
        color: #1f2937 !important;
    }
    
    .gag-pwc-btn-secondary:hover,
    .gag-pwc-btn-pagination:hover:not(:disabled) {
        background: #e5e7eb !important;
        color: #000000 !important;
    }
    
    #gag-pwc-page-info {
        color: #4b5563 !important;
    }
    
    .gag-pwc-empty-state {
        color: #9ca3af !important;
    }
    
    .gag-pwc-error {
        background: #7f1d1d !important;
        border-color: #991b1b !important;
        color: #fca5a5 !important;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .gag-pwc-container {
        padding: 15px;
    }
    
    .gag-pwc-nav-tabs {
        gap: 8px;
    }
    
    .gag-pwc-tab-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .gag-pwc-tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .gag-pwc-calculator {
        padding: 20px;
    }
    
    .gag-pwc-item-preview img,
    .gag-pwc-pet-preview img {
        width: 72px;
        height: 72px;
    }
    
    .gag-pwc-table {
        font-size: 0.875rem;
    }
    
    .gag-pwc-table th,
    .gag-pwc-table td {
        padding: 10px 12px;
    }
    
    .gag-pwc-table-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .gag-pwc-search {
        width: 100%;
        min-width: auto;
    }
}

/* ============================================
   CRITICAL: Maximum specificity overrides
   These rules override WordPress theme styles
   ============================================ */
html body .gag-pwc-container,
html body .gag-pwc-container * {
    box-sizing: border-box;
}

/* Force all text elements to be visible */
html body .gag-pwc-container .gag-pwc-title,
html body .gag-pwc-container h1.gag-pwc-title {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    text-fill-color: #000000 !important;
    background: none !important;
    background-image: none !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-description,
html body .gag-pwc-container p.gag-pwc-description {
    color: #1f2937 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-calc-title,
html body .gag-pwc-container h2.gag-pwc-calc-title {
    color: #000000 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-calc-desc,
html body .gag-pwc-container p.gag-pwc-calc-desc {
    color: #1f2937 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-input-group label,
html body .gag-pwc-container label {
    color: #000000 !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

html body .gag-pwc-container .gag-pwc-input,
html body .gag-pwc-container .gag-pwc-select,
html body .gag-pwc-container .gag-pwc-search,
html body .gag-pwc-container input,
html body .gag-pwc-container select {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 2px solid #d1d5db !important;
}

html body .gag-pwc-container .gag-pwc-input::placeholder,
html body .gag-pwc-container .gag-pwc-search::placeholder,
html body .gag-pwc-container input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

html body .gag-pwc-container .gag-pwc-input-hint {
    color: #6b7280 !important;
}

html body .gag-pwc-container .gag-pwc-table th {
    color: #000000 !important;
    background-color: #f4f4f5 !important;
}

html body .gag-pwc-container .gag-pwc-table td {
    color: #000000 !important;
    background-color: #ffffff !important;
}

html body .gag-pwc-container .gag-pwc-summary-label {
    color: #4b5563 !important;
}

html body .gag-pwc-container .gag-pwc-summary-value {
    color: #10b981 !important;
    font-weight: 700 !important;
}

html body .gag-pwc-container .gag-pwc-summary-unit {
    color: #6b7280 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn {
    color: #1f2937 !important;
    background-color: #f3f4f6 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn span {
    color: #1f2937 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn.active {
    color: #ffffff !important;
    background-color: #10b981 !important;
}

html body .gag-pwc-container .gag-pwc-tab-btn.active span {
    color: #ffffff !important;
}

html body .gag-pwc-container .gag-pwc-btn-secondary,
html body .gag-pwc-container .gag-pwc-btn-pagination,
html body .gag-pwc-container button {
    color: #1f2937 !important;
    background-color: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

html body .gag-pwc-container .gag-pwc-item-preview span,
html body .gag-pwc-container .gag-pwc-pet-preview span {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
}

html body .gag-pwc-container #gag-pwc-page-info {
    color: #4b5563 !important;
}

html body .gag-pwc-container .gag-pwc-empty-state {
    color: #6b7280 !important;
}

/* Ensure all text is visible - high contrast - FORCE VISIBLE COLORS */
/* Using high specificity to override WordPress themes */
body .gag-pwc-container,
body .gag-pwc-container * {
    color: inherit;
}

/* Force visible text colors with maximum specificity */
body .gag-pwc-container .gag-pwc-input,
body .gag-pwc-container .gag-pwc-select,
body .gag-pwc-container .gag-pwc-search,
body .gag-pwc-container input[type="text"],
body .gag-pwc-container input[type="number"],
body .gag-pwc-container input[type="text"]:focus,
body .gag-pwc-container input[type="number"]:focus,
body .gag-pwc-container select,
body .gag-pwc-container select option {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #d1d5db !important;
}

body .gag-pwc-container select option {
    color: #000000 !important;
    background: #ffffff !important;
}

body .gag-pwc-container .gag-pwc-input::placeholder,
body .gag-pwc-container .gag-pwc-search::placeholder,
body .gag-pwc-container input::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

body .gag-pwc-container .gag-pwc-input-group label,
body .gag-pwc-container .gag-pwc-pet-selector label,
body .gag-pwc-container label {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    font-weight: 600 !important;
}

body .gag-pwc-container .gag-pwc-summary-label {
    color: #4b5563 !important;
}

body .gag-pwc-container .gag-pwc-table th,
body .gag-pwc-container .gag-pwc-table td {
    color: #000000 !important;
}

body .gag-pwc-container .gag-pwc-calc-title,
body .gag-pwc-container .gag-pwc-title,
body .gag-pwc-container h1,
body .gag-pwc-container h2,
body .gag-pwc-container h3 {
    color: #000000 !important;
    text-shadow: none !important;
}

body .gag-pwc-container .gag-pwc-summary-value {
    color: #10b981 !important;
}

body .gag-pwc-container .gag-pwc-calc-desc,
body .gag-pwc-container .gag-pwc-description {
    color: #1f2937 !important;
    text-shadow: none !important;
}

body .gag-pwc-container .gag-pwc-input-hint {
    color: #6b7280 !important;
    text-shadow: none !important;
}

body .gag-pwc-container .gag-pwc-summary-unit,
body .gag-pwc-container #gag-pwc-page-info {
    color: #4b5563 !important;
}

body .gag-pwc-container p {
    color: #1f2937 !important;
    text-shadow: none !important;
}

/* Ensure buttons have visible text */
body .gag-pwc-container .gag-pwc-btn-secondary,
body .gag-pwc-container .gag-pwc-btn-pagination,
body .gag-pwc-container button {
    color: #1f2937 !important;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

body .gag-pwc-container .gag-pwc-btn-secondary:hover,
body .gag-pwc-container .gag-pwc-btn-pagination:hover:not(:disabled) {
    color: #000000 !important;
    background: #e5e7eb !important;
}

/* Tab buttons - ensure text is visible */
body .gag-pwc-container .gag-pwc-tab-btn,
body .gag-pwc-container .gag-pwc-tab-btn span {
    color: #1f2937 !important;
    background-color: #f3f4f6 !important;
}

body .gag-pwc-container .gag-pwc-tab-btn.active,
body .gag-pwc-container .gag-pwc-tab-btn.active span {
    color: #ffffff !important;
    background: #10b981 !important;
}

/* Summary values */
body .gag-pwc-container .gag-pwc-summary-value {
    color: #10b981 !important;
    font-weight: 700 !important;
}

/* Table text */
body .gag-pwc-container .gag-pwc-table th,
body .gag-pwc-container .gag-pwc-table td {
    color: #000000 !important;
}

/* Item preview text */
body .gag-pwc-container .gag-pwc-item-preview span,
body .gag-pwc-container .gag-pwc-pet-preview span {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Advanced Features Styles */

/* Pet Selector Filters */
.gag-pwc-pet-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.gag-pwc-pet-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Chart Container */
.gag-pwc-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.gag-pwc-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.gag-pwc-chart-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gag-pwc-chart-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.gag-pwc-chart-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#gag-pwc-growth-chart {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 4px;
}

/* Comparison Section */
.gag-pwc-comparison-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.gag-pwc-comparison-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gag-pwc-comparison-list {
    margin-top: 15px;
}

.gag-pwc-comparison-list .gag-pwc-table {
    margin-top: 0;
}

/* Milestones */
.gag-pwc-milestones {
    margin: 30px 0;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.gag-pwc-milestones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gag-pwc-milestone-item {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    color: #000000 !important;
}

.gag-pwc-milestone-item strong {
    color: #10b981 !important;
    display: block;
    margin-bottom: 4px;
}

/* Enhanced Table - Weight Gain Column */
.gag-pwc-table th:nth-child(4),
.gag-pwc-table td:nth-child(4) {
    color: #10b981 !important;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gag-pwc-pet-selector-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gag-pwc-pet-filters {
        width: 100%;
    }
    
    .gag-pwc-pet-filters .gag-pwc-select,
    .gag-pwc-pet-filters .gag-pwc-search {
        flex: 1;
        min-width: 0;
    }
    
    .gag-pwc-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #gag-pwc-growth-chart {
        width: 100% !important;
        height: 300px !important;
    }
}
