/* Beautiful Color Scheme */
:root {
    --okk-primary: #2563eb;
    --okk-primary-hover: #1d4ed8;
    --okk-secondary: #64748b;
    --okk-success: #059669;
    --okk-warning: #d97706;
    --okk-danger: #dc2626;
    --okk-light: #f8fafc;
    --okk-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --okk-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --okk-border-radius: 8px;
}

/* Enhanced Checkbox Styling */
.okk-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    gap: 8px;
}

.okk-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.okk-checkmark {
    width: 20px;
    height: 20px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.okk-checkbox-label:hover .okk-checkmark {
    border-color: var(--okk-primary);
    background: #eff6ff;
}

.okk-checkbox-label input[type="checkbox"]:checked + .okk-checkmark {
    background: var(--okk-primary);
    border-color: var(--okk-primary);
}

.okk-checkbox-label input[type="checkbox"]:checked + .okk-checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Multiple Items Styling */
.okk-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--okk-border-radius);
    border: 1px solid #cbd5e1;
}

.okk-item-info {
    flex: 1;
    font-size: 14px;
    color: #475569;
}

.okk-item-cost {
    font-weight: 600;
    color: var(--okk-primary);
    margin-left: 12px;
}

.okk-item-remove {
    background: var(--okk-danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.okk-item-remove:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.okk-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.okk-summary-line.okk-total {
    border-bottom: none;
    background: var(--okk-gradient);
    color: white;
    padding: 12px 16px;
    border-radius: var(--okk-border-radius);
    margin-top: 12px;
}

.okk-summary-line.okk-total .okk-value {
    color: white;
    font-size: 1.2em;
}

/* Enhanced visible checkbox styling */
.okk-glaze-field.okk-prominent-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ecfdf5, #d1fae5);
    border-radius: var(--okk-border-radius);
    padding: 16px 20px;
    border: 2px solid #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.okk-visible-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #065f46;
    cursor: pointer;
    font-size: 16px;
}

.okk-large-checkmark {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #10b981;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.okk-visible-checkbox input[type="checkbox"] {
    display: none;
}

.okk-visible-checkbox input[type="checkbox"]:checked + .okk-large-checkmark {
    background: #10b981;
    border-color: #059669;
}

.okk-visible-checkbox input[type="checkbox"]:checked + .okk-large-checkmark::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.okk-checkbox-text {
    user-select: none;
}

/* Button group styling */
.okk-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.okk-button-group .okk-btn-secondary,
.okk-button-group .okk-btn-primary {
    flex: 1;
    min-width: 120px;
}

/* Modal popup styling */
.okk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.okk-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.okk-modal-content {
    background: white;
    border-radius: var(--okk-border-radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.okk-modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.okk-modal-header h3 {
    margin: 0;
    color: var(--okk-primary);
    font-size: 1.2em;
}

.okk-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.3s ease;
}

.okk-modal-close:hover {
    color: #ef4444;
}

.okk-modal-body {
    padding: 20px;
}

.okk-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
}

.okk-estimate-item {
    font-weight: 600;
    color: #475569;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 6px;
    border-left: 4px solid var(--okk-primary);
    margin-bottom: 16px;
    text-align: center;
}

.okk-estimate-costs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.okk-cost-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
    font-size: 14px;
}

.okk-cost-line.okk-total-line {
    background: var(--okk-gradient);
    color: white;
    font-size: 1.1em;
    margin-top: 8px;
    font-weight: bold;
}

.okk-cost-line.okk-total-line .okk-price {
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .okk-modal {
        padding: 10px;
    }
    
    .okk-modal-content {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .okk-modal-header,
    .okk-modal-body,
    .okk-modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.okk-glaze-field {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f9ff, #e0f2fe);
    border-radius: var(--okk-border-radius);
    padding: 12px;
    border: 1px solid #bae6fd;
}

/* Multi-kiln manager specific styles */
.okk-multi-kiln-manager {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.okk-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.okk-kiln-controls {
    display: flex;
    gap: 10px;
}

.okk-kiln-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.okk-kiln-tab {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.okk-kiln-tab.active {
    background: white;
    border-top: 3px solid #0073aa;
}

.okk-kiln-tab:hover {
    background: #e8e8e8;
}

.okk-firing-type {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.okk-tab-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

.okk-tab-close:hover {
    background: #c82333;
}

.okk-kiln-panel {
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px;
    background: white;
}

.okk-kiln-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.okk-multi-kiln-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.okk-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.okk-summary-card {
    background: white;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.okk-summary-card .okk-value {
    font-weight: bold;
    color: #0073aa;
}

.okk-firing-breakdown {
    background: white;
    padding: 15px;
    border-radius: 5px;
}

.okk-firing-stat {
    display: inline-block;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    font-size: 0.9em;
}

/* Transfer Modal */
.okk-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.okk-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.okk-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.okk-modal-close:hover {
    color: #333;
}

.okk-quote-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.okk-quote-summary h4 {
    margin-top: 0;
    color: #0073aa;
}

.okk-modal-body {
    padding: 20px;
}

.okk-transfer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.okk-transfer-item {
    display: block;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
}

.okk-transfer-item:hover {
    background: #f5f5f5;
}

.okk-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Admin Layout */
.okk-admin-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.okk-admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.okk-input-panel,
.okk-basket-panel {
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 20px;
}

.okk-input-section,
.okk-basket-section {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: var(--okk-border-radius);
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: var(--okk-shadow);
}

.okk-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.okk-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.okk-field label {
    font-weight: 600;
    color: #333;
}

.okk-field input,
.okk-field select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.okk-field input:focus,
.okk-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.okk-dimensions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.okk-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.okk-input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.okk-input-with-unit input {
    flex: 1;
}

.okk-unit {
    background: #f1f1f1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 600;
    color: #666;
    min-width: 60px;
    text-align: center;
}

.okk-cost-info {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.okk-nested-table {
    width: 100%;
    border-collapse: collapse;
}

.okk-nested-table td {
    padding: 5px 10px 5px 0;
    vertical-align: top;
}

.okk-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.okk-btn-primary,
.okk-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.okk-btn-primary {
    background: #0073aa;
    color: white;
}

.okk-btn-primary:hover:not(:disabled) {
    background: #005a87;
}

.okk-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.okk-btn-secondary {
    background: #f1f1f1;
    color: #333;
}

.okk-btn-secondary:hover {
    background: #e1e1e1;
}

/* Basket Styles */
.okk-basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.okk-basket-header h3 {
    margin: 0;
    color: #333;
}

.okk-basket-items {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.okk-empty-basket {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 60px 0;
}

.okk-basket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.okk-basket-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.okk-item-info {
    flex: 1;
}

.okk-item-info strong {
    color: #0073aa;
}

.okk-item-info small {
    color: #666;
    line-height: 1.4;
}

.okk-quantity {
    color: #333;
    font-weight: 600;
}

.okk-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.okk-remove-item:hover {
    background: #c82333;
}

/* Customer basket total */
.okk-basket-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.okk-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.okk-price {
    color: #0073aa;
    font-size: 20px;
}

/* Admin Results */
.okk-admin-results {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 20px;
}

.okk-results-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.okk-cost-breakdown h3,
.okk-shelf-visualization h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.okk-cost-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.okk-cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.okk-cost-item.total {
    background: #e7f3ff;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #0073aa;
}

/* Shelf Visualization */
.okk-kiln-visualization {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.okk-kiln-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.okk-kiln-info p {
    margin: 5px 0;
}

.okk-shelf {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.okk-shelf h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 14px;
}

.okk-shelf-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.okk-shelf-item {
    background: #e7f3ff;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.okk-item-type {
    font-weight: 600;
    color: #0073aa;
}

.okk-item-dims {
    color: #666;
    font-size: 11px;
}

.okk-item-qty {
    color: #333;
    font-weight: 600;
}

.okk-shelf-stats {
    color: #666;
    font-size: 11px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.okk-disclaimer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
}

/* Suggestion system styles */
.okk-item-suggestions {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.okk-suggestion-form h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.okk-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-style: italic;
}

.okk-pottery-dimensions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.okk-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.okk-admin-suggestions {
    margin-top: 30px;
}

.okk-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.okk-suggestion-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.okk-suggestions-list {
    max-height: 600px;
    overflow-y: auto;
}

.okk-suggestion-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.okk-suggestion-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.okk-suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.okk-suggestion-type {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.okk-suggestion-priority {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.okk-priority-normal { background: #95a5a6; color: white; }
.okk-priority-high { background: #f39c12; color: white; }
.okk-priority-urgent { background: #e74c3c; color: white; }

.okk-suggestion-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.okk-status-pending { background: #f39c12; color: white; }
.okk-status-approved { background: #27ae60; color: white; }
.okk-status-rejected { background: #e74c3c; color: white; }
.okk-status-implemented { background: #9b59b6; color: white; }

.okk-suggestion-text {
    margin: 10px 0;
    line-height: 1.6;
}

.okk-suggestion-dimensions {
    background: #ecf0f1;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.okk-suggestion-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 15px;
}

.okk-admin-response {
    background: #d5e8d4;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #27ae60;
}

.okk-suggestion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.okk-no-suggestions {
    text-align: center;
    color: #7f8c8d;
    padding: 40px;
    font-style: italic;
}


/* Oktana Kiln Calculator Styles */
.okk-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.okk-calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

/* Mobile-First Single Screen Optimization */
@media (max-width: 768px) {
    .okk-calculator-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .okk-calculator {
        padding: 12px;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .okk-input-section,
    .okk-price-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .okk-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .okk-field {
        margin-bottom: 12px;
    }
    
    .okk-dimensions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .okk-dimensions .okk-field {
        margin-bottom: 0;
    }
    
    /* Ensure glaze field spans both columns */
    .okk-glaze-field {
        grid-column: 1 / -1;
    }
    
    /* Compact form elements optimized for 3 digits */
    input[type="text"],
    input[type="number"],
    select {
        padding: 8px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: var(--okk-border-radius);
        border: 2px solid #e2e8f0;
        transition: border-color 0.3s ease;
        width: 100px; /* Wide enough for decimals like 10.5 */
        min-width: 100px;
        text-align: center;
    }
    
    /* Wider selects for readability */
    select {
        width: auto;
        min-width: 120px;
        text-align: left;
    }
    
    input:focus,
    select:focus {
        outline: none;
        border-color: var(--okk-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    
    /* Optimize price display for mobile */
    .okk-price-result {
        padding: 12px;
    }
    
    .okk-price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .okk-price-item:last-child {
        border-bottom: none;
    }
}

/* Form Styles */
.okk-form {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.okk-field {
    margin-bottom: 15px;
}

.okk-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.okk-field input,
.okk-field select,
.okk-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background: #ffffff;
    color: #2c3e50;
}

.okk-field input:focus,
.okk-field select:focus,
.okk-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    background: #ffffff;
}

.okk-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

@media (max-width: 480px) {
    .okk-dimensions {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Small mobile optimizations */
    .okk-calculator {
        padding: 10px;
        margin: 5px;
    }
    
    .okk-target-earning-card {
        padding: 12px;
        margin: 10px 0;
    }
    
    .okk-target-earning-card h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    
    .okk-target-form .okk-row {
        gap: 12px;
    }
    
    .okk-kiln-container {
        margin-bottom: 15px;
    }
    
    .okk-kiln-header h4 {
        font-size: 1em;
    }
    
    .okk-kiln-stats {
        font-size: 0.85em;
    }
    
    .okk-capacity-bar {
        height: 14px;
    }
    
    .okk-capacity-text {
        font-size: 0.75em;
    }
    
    .okk-form {
        padding: 15px;
    }
    
    .okk-field {
        margin-bottom: 18px;
    }
    
    .okk-field input,
    .okk-field select {
        padding: 16px 12px;
        border-radius: 8px;
    }
    
    /* Touch-friendly buttons */
    .okk-btn-primary,
    .okk-btn-secondary,
    .okk-btn-success,
    .okk-btn-warning,
    .okk-btn-danger {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
        border-radius: 8px;
        touch-action: manipulation;
    }
}

.okk-input-with-unit {
    display: flex;
    align-items: center;
    gap: 5px;
}

.okk-unit {
    background: #e1e1e1;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

/* Buttons */
.okk-btn-primary,
.okk-btn-secondary,
.okk-btn-warning {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.okk-btn-primary {
    background: var(--okk-gradient);
    color: white;
    box-shadow: var(--okk-shadow);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.okk-btn-primary:hover:not(:disabled) {
    background: var(--okk-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.okk-btn-secondary {
    background: var(--okk-light);
    color: var(--okk-secondary);
    border: 2px solid #e2e8f0;
    box-shadow: var(--okk-shadow);
}

.okk-btn-secondary:hover:not(:disabled) {
    background: white;
    border-color: var(--okk-primary);
    color: var(--okk-primary);
}

.okk-btn-success {
    background: var(--okk-success);
    color: white;
    box-shadow: var(--okk-shadow);
}

.okk-btn-success:hover:not(:disabled) {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.okk-btn-warning {
    background: var(--okk-warning);
    color: white;
    box-shadow: var(--okk-shadow);
}

.okk-btn-warning:hover:not(:disabled) {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.okk-btn-danger {
    background: var(--okk-danger);
    color: white;
    box-shadow: var(--okk-shadow);
}

.okk-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.okk-btn-primary:disabled,
.okk-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Price Display */
.okk-price-section {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border: 2px solid #bfdbfe;
    border-radius: var(--okk-border-radius);
    padding: 24px;
    box-shadow: var(--okk-shadow);
}

.okk-price-section h3 {
    color: var(--okk-primary);
    margin-bottom: 16px;
    font-size: 1.5em;
    font-weight: 600;
}

.okk-price-result {
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff, #dbeafe);
    border-radius: var(--okk-border-radius);
    border: 1px solid #93c5fd;
}

.okk-total-price {
    background: var(--okk-gradient);
    color: white;
    padding: 12px 16px;
    border-radius: var(--okk-border-radius);
    margin-top: 12px;
}

.okk-total-price .okk-price {
    color: white !important;
    font-size: 1.3em;
}

.okk-price-result {
    margin: 20px 0;
}

.okk-price-per-item,
.okk-total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.okk-total-price {
    border-bottom: none;
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
}

.okk-price {
    font-weight: bold;
    color: #0073aa;
}

/* Basket Styles */
.okk-basket-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
}

.okk-basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.okk-basket-header h3 {
    margin: 0;
    color: #333;
}

.okk-basket-items {
    min-height: 100px;
    margin-bottom: 20px;
}

.okk-basket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.okk-item-info {
    flex: 1;
}

.okk-quantity {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.okk-glazed {
    background: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 8px;
}

.okk-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.okk-empty-basket {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 30px;
}

.okk-basket-total {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Results Styles */
.okk-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .okk-results-grid {
        grid-template-columns: 1fr;
    }
}

.okk-cost-breakdown,
.okk-usage-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.okk-cost-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.okk-final-cost {
    font-weight: bold;
    font-size: 1.1em;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    margin-top: 10px;
}

/* Multi-Kiln Styles */
.okk-multi-kiln-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.okk-kiln-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 5px;
}

.okk-kiln-tab {
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.okk-kiln-tab.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.okk-tab-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    color: #999;
}

.okk-tab-close:hover {
    color: #dc3545;
}

.okk-firing-type {
    font-size: 0.8em;
    color: #666;
}

.okk-kiln-panel {
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 4px;
    padding: 20px;
    background: white;
}

.okk-kiln-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.okk-kiln-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Disclaimer */
.okk-disclaimer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .okk-calculator {
        padding: 10px;
    }

    .okk-form {
        padding: 15px;
    }

    .okk-btn-primary,
    .okk-btn-secondary,
    .okk-btn-warning {
        width: 100%;
        margin-bottom: 10px;
    }

    .okk-actions {
        flex-direction: column;
    }

    .okk-kiln-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .okk-kiln-actions {
        justify-content: stretch;
    }

    .okk-kiln-actions button {
        flex: 1;
    }
}

/* Loading States */
.okk-loading {
    opacity: 0.6;
    pointer-events: none;
}

.okk-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: okk-spin 1s linear infinite;
}

@keyframes okk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.okk-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success States */
.okk-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .okk-admin-layout,
    .okk-results-layout {
        grid-template-columns: 1fr;
    }

    .okk-customer-view .okk-calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .okk-calculator,
    .okk-admin-calculator {
        margin: 10px;
        padding: 15px;
    }

    .okk-dimensions {
        grid-template-columns: 1fr;
    }

    .okk-actions,
    .okk-basket-header {
        flex-direction: column;
        gap: 10px;
    }

    .okk-basket-item {
        flex-direction: column;
        gap: 10px;
    }

    .okk-shelf-items {
        justify-content: center;
    }
    
    /* Target Earning Mobile */
    .okk-target-earning-card {
        padding: 15px;
        margin: 15px 0;
    }
    
    .okk-target-form .okk-row {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .okk-target-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .okk-target-actions button {
        width: 100%;
    }
    
    /* Kiln Capacity Mobile */
    .okk-kiln-capacity {
        margin-top: 10px;
    }
    
    .okk-capacity-bar {
        height: 16px;
    }
    
    .okk-capacity-text {
        font-size: 0.8em;
        margin-top: 6px;
    }
    
    /* Better mobile form styling */
    .okk-form {
        padding: 20px;
        margin: 10px 0;
    }
    
    .okk-field input,
    .okk-field select,
    .okk-field textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .okk-field label {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

/* Kiln Capacity Indicators */
.okk-kiln-capacity {
    margin-top: 8px;
}

.okk-capacity-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.okk-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #f44336);
    transition: width 0.3s ease;
    position: relative;
}

.okk-capacity-fill[style*="80%"],
.okk-capacity-fill[style*="85%"],
.okk-capacity-fill[style*="90%"],
.okk-capacity-fill[style*="95%"],
.okk-capacity-fill[style*="100%"] {
    background: #FF9800 !important;
    animation: warning-pulse 1.5s infinite;
}

.okk-capacity-fill[style*="95%"],
.okk-capacity-fill[style*="100%"] {
    background: #f44336 !important;
    animation: danger-pulse 1s infinite;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes danger-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.okk-capacity-text {
    font-size: 0.85em;
    margin-top: 4px;
    display: block;
    text-align: center;
    font-weight: 500;
}

/* Target Earning Calculator Card */
.okk-target-earning-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.okk-target-earning-card h3 {
    color: #007cba;
    margin-bottom: 10px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.okk-target-form .okk-row {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 15px;
}

.okk-target-form .okk-input-with-unit {
    position: relative;
    display: inline-block;
}

.okk-target-form .okk-input-with-unit input {
    padding-right: 30px;
}

.okk-target-form .okk-input-with-unit .okk-unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #666;
}

.okk-volume-info {
    font-size: 1.1em;
    font-weight: 500;
    color: #007cba;
    background: #e7f3ff;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #b3d9ff;
}

.okk-target-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Pricing method indicator */
.okk-pricing-method {
    margin-bottom: 15px;
    padding: 8px 12px;
    background: #e8f4fd;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

.okk-method-label {
    font-weight: 500;
    color: #007cba;
}