/* ===================== RESET WORDPRESS/THEME CONFLICTS ===================== */
.tipcalc2026-container {all: initial;display: block;}

/* WordPress Theme Compatibility - Reset and Isolation */
.tipcalc2026-container * {
box-sizing: border-box !important;
font-family: 'Poppins', Arial, sans-serif !important;
font-weight: normal !important;
}

.tipcalc2026-container p,.tipcalc2026-container span,.tipcalc2026-container div,.tipcalc2026-container li,.tipcalc2026-container label,.tipcalc2026-container input,.tipcalc2026-container select,.tipcalc2026-container textarea {
font-weight: normal !important;
}

.tipcalc2026-container strong,.tipcalc2026-container b {
font-weight: 700 !important;
}

.tipcalc2026-container h1,.tipcalc2026-container h2,.tipcalc2026-container h3,.tipcalc2026-container h4,.tipcalc2026-container h5,.tipcalc2026-container h6 {
font-weight: 600 !important;
}

.tipcalc2026-container input, .tipcalc2026-container select, .tipcalc2026-container button, .tipcalc2026-container textarea {
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
background-image: none !important;
border-radius: 12px !important;
}

.tipcalc2026-container button {
cursor: pointer !important;
text-decoration: none !important;
}

/* ===================== MAIN CONTAINER ===================== */
.tipcalc2026-container {
width: 100% !important;
margin: 0 auto !important;
padding: 0px !important;
font-family: 'Poppins', Arial, sans-serif;
color: #222;
box-sizing: border-box;
}

.tipcalc2026-container *, .tipcalc2026-container *::before, .tipcalc2026-container *::after { box-sizing: border-box; }

/* ===================== HEADER ===================== */
.tipcalc2026-card-header {
text-align: center;
margin-bottom: 10px;
padding: 10px;
border-radius: 16px;
background: #fff;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
transition: transform .3s;
}

.tipcalc2026-card-header:hover {
transform: translateY(-2px);
}

.tipcalc2026-card-header h2 {
font-size: 24px;
color: #333;
font-weight: 600;
margin-bottom: 8px;
}

.tipcalc2026-card-header p {
font-size: 14px;
color: #555;
margin: 0 auto;
}

/* ===================== CARD ===================== */
.tipcalc2026-card {
background: #fff;
padding: 3px;
border-radius: 16px;
box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===================== INFO BOX ===================== */
.tipcalc2026-info-box {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
padding: 16px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tipcalc2026-info-box p {
margin: 0 0 10px 0;
font-size: 14px;
line-height: 1.6;
font-weight: normal !important;
}

.tipcalc2026-info-box p:last-child {
margin-bottom: 0;
}

.tipcalc2026-info-box strong {
font-weight: 700 !important;
}

/* ===================== WARNING BOX ===================== */
.tipcalc2026-warning-box {
background: #fff3cd;
border-left: 4px solid #ffc107;
padding: 12px 16px;
border-radius: 8px;
margin: 16px 0;
}

.tipcalc2026-warning-box p {
margin: 0;
font-size: 13px;
color: #856404;
line-height: 1.5;
font-weight: normal !important;
}

.tipcalc2026-warning-box strong {
color: #d39e00;
font-weight: 700 !important;
}

/* ===================== INPUT SECTION ===================== */
.tipcalc2026-input-section {
background: #fff;
padding: 20px;
border-radius: 16px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
margin: 0;
}

.tipcalc2026-section-heading {
margin-bottom: 16px;
}

.tipcalc2026-section-heading h4 {
margin: 0 0 8px 0;
font-weight: 600;
font-size: 18px;
color: #1976d2;
border-bottom: 2px solid #1976d2;
padding-bottom: 8px;
}

.tipcalc2026-input-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-bottom: 16px;
}

.tipcalc2026-input-group {
flex: 1;
min-width: 200px;
}

.tipcalc2026-input-group label {
display: block;
margin-bottom: 6px;
font-weight: 600 !important;
font-size: 14px;
color: #1976d2;
}

.tipcalc2026-input-group input, .tipcalc2026-input-group select {
width: 100%;
padding: 12px 14px;
border: 1px solid #90caf9;
border-radius: 12px;
font-size: 15px;
transition: .3s;
background: #fff;
font-weight: normal !important;
}

.tipcalc2026-input-group input:focus, .tipcalc2026-input-group select:focus {
outline: none;
border-color: #1976d2;
box-shadow: 0 0 0 3px rgba(25,118,210,0.15);
}

.tipcalc2026-unit-input {
display: flex;
gap: 8px;
}

.tipcalc2026-unit-input input {
flex: 2;
}

.tipcalc2026-unit-input select {
flex: 1;
}

/* ===================== CHECKBOX ===================== */
.tipcalc2026-checkbox-options {
display: flex;
flex-direction: column;
gap: 8px;
}

.tipcalc2026-checkbox-option {
display: flex;
align-items: center;
gap: 10px;
padding: 12px;
border-radius: 8px;
background: #f8f9fa;
border: 2px solid #e0e0e0;
transition: all 0.2s;
}

.tipcalc2026-checkbox-option:hover {
background-color: #e3f2fd;
border-color: #90caf9;
}

.tipcalc2026-checkbox-option input[type="checkbox"] {
width: 22px;
height: 22px;
cursor: pointer;
accent-color: #1976d2;
border: 2px solid #1976d2;
border-radius: 4px;
flex-shrink: 0;
}

.tipcalc2026-checkbox-option input[type="checkbox"]:checked {
background-color: #1976d2;
}

.tipcalc2026-checkbox-option label {
cursor: pointer;
font-size: 14px;
margin: 0;
font-weight: 500 !important;
color: #333;
user-select: none;
flex: 1;
}

/* ===================== ADVANCED OPTIONS ===================== */
.tipcalc2026-advanced-options {
margin-top: 20px;
padding-top: 20px;
border-top: 2px dashed #e0e0e0;
}

.tipcalc2026-advanced-options h4 {
margin: 0 0 16px 0;
font-size: 16px;
color: #1976d2;
}

/* ===================== BUTTONS ===================== */
.tipcalc2026-btn-group {
display: flex;
gap: 12px;
margin-top: 20px;
}

.tipcalc2026-calculate-btn,.tipcalc2026-reset-btn {
flex: 1;
padding: 14px;
border: none;
border-radius: 12px;
font-weight: 700 !important;
font-size: 16px;
cursor: pointer;
transition: .2s;
}

.tipcalc2026-calculate-btn {
background: #1976d2;
color: #fff;
}

.tipcalc2026-calculate-btn:hover {
background: #125ea8;
transform: translateY(-2px);
}

.tipcalc2026-reset-btn {
background: #f44336;
color: #fff;
}

.tipcalc2026-reset-btn:hover {
background: #c62828;
transform: translateY(-2px);
}

/* ===================== RESULT CONTAINER ===================== */
.tipcalc2026-result-container {
margin-top: 30px;
background: #fff;
padding: 24px;
border-radius: 16px;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tipcalc2026-result-container.tipcalc2026-hidden {
display: none;
}

.tipcalc2026-result-container h3 {
font-size: 22px;
color: #1976d2;
margin: 0 0 20px 0;
text-align: center;
font-weight: 700;
}

/* ===================== RESULTS GRID ===================== */
.tipcalc2026-results-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 24px;
}

.tipcalc2026-result-card {
background: #f5f5f5;
padding: 20px;
border-radius: 12px;
text-align: center;
transition: all 0.3s;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tipcalc2026-result-card.tipcalc2026-primary {
background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
color: #fff;
transform: scale(1.05);
}

.tipcalc2026-result-card:hover {
transform: translateY(-4px);
box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.tipcalc2026-result-title {
font-size: 13px;
font-weight: 600 !important;
margin-bottom: 8px;
opacity: 0.9;
}

.tipcalc2026-result-value {
font-size: 32px;
font-weight: 700 !important;
margin-bottom: 4px;
}

.tipcalc2026-result-unit {
font-size: 14px;
font-weight: 500 !important;
opacity: 0.8;
}

/* ===================== CALCULATION STEPS ===================== */
.tipcalc2026-calculation-steps {
background: #f3e5f5;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
}

.tipcalc2026-calculation-steps h4 {
margin: 0 0 12px 0;
font-size: 16px;
color: #4a148c;
font-weight: 600;
}

.tipcalc2026-steps-content {
font-size: 13px;
color: #6a1b9a;
line-height: 1.8;
font-weight: normal !important;
}

.tipcalc2026-steps-content p {
margin: 8px 0;
font-weight: normal !important;
}

.tipcalc2026-steps-content strong {
color: #4a148c;
font-weight: 700 !important;
}

.tipcalc2026-steps-content em {
font-style: italic;
font-weight: normal !important;
}

/* ===================== EDUCATIONAL INFO ===================== */
.tipcalc2026-educational-info {
background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
}

.tipcalc2026-educational-info h4 {
margin: 0 0 12px 0;
font-size: 16px;
color: #2e7d32;
font-weight: 600;
}

.tipcalc2026-educational-info p {
margin: 8px 0;
font-size: 13px;
color: #1b5e20;
line-height: 1.8;
font-weight: normal !important;
}

.tipcalc2026-educational-info strong {
font-weight: 700 !important;
}

/* ===================== TIP SUGGESTIONS ===================== */
.tipcalc2026-tip-suggestions {
background: #e3f2fd;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
}

.tipcalc2026-tip-suggestions h4 {
margin: 0 0 12px 0;
font-size: 16px;
color: #0d47a1;
font-weight: 600;
}

.tipcalc2026-tip-suggestions ul {
margin: 0;
padding-left: 20px;
}

.tipcalc2026-tip-suggestions li {
margin-bottom: 8px;
font-size: 13px;
color: #1565c0;
line-height: 1.6;
font-weight: normal !important;
}

/* ===================== SPLIT BILL BREAKDOWN ===================== */
.tipcalc2026-split-breakdown {
background: #fff8e1;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
}

.tipcalc2026-split-breakdown h4 {
margin: 0 0 12px 0;
font-size: 16px;
color: #f57c00;
font-weight: 600;
}

.tipcalc2026-split-breakdown table {
width: 100%;
border-collapse: collapse;
}

.tipcalc2026-split-breakdown th,
.tipcalc2026-split-breakdown td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ffe082;
font-size: 13px;
}

.tipcalc2026-split-breakdown th {
background: #ffecb3;
color: #e65100;
font-weight: 600 !important;
}

.tipcalc2026-split-breakdown td {
color: #ef6c00;
font-weight: normal !important;
}

/* ===================== HIDDEN ===================== */
.tipcalc2026-hidden {
display: none !important;
}

/* ===================== HISTORY ITEM ===================== */
.tipcalc2026-history-item {
background: #f8f9fa;
padding: 15px;
border-radius: 8px;
margin-bottom: 12px;
border-left: 4px solid #1976d2;
transition: all 0.2s;
}

.tipcalc2026-history-item:hover {
background: #e3f2fd;
transform: translateX(5px);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tipcalc2026-history-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}

.tipcalc2026-history-user {
font-weight: 600 !important;
color: #1976d2;
font-size: 14px;
}

.tipcalc2026-history-date {
font-size: 12px;
color: #666;
}

.tipcalc2026-history-details {
font-size: 13px;
color: #333;
line-height: 1.6;
}

.tipcalc2026-history-comment {
font-style: italic;
color: #555;
margin-top: 8px;
padding-top: 8px;
border-top: 1px dashed #ddd;
font-size: 12px;
}

.tipcalc2026-loading {
text-align: center;
padding: 20px;
color: #1976d2;
font-size: 14px;
}

.tipcalc2026-error {
background: #ffebee;
color: #c62828;
padding: 12px;
border-radius: 8px;
text-align: center;
font-size: 13px;
}

.tipcalc2026-success {
background: #e8f5e9;
color: #2e7d32;
padding: 12px;
border-radius: 8px;
text-align: center;
font-size: 13px;
}

/* ===================== RESPONSIVE ===================== */
@media(max-width: 600px) {
.tipcalc2026-container {
padding: 12px !important;
}
.tipcalc2026-input-row {
flex-direction: column;
}
.tipcalc2026-input-group {
min-width: 100%;
}
.tipcalc2026-results-grid {
grid-template-columns: 1fr;
}
.tipcalc2026-btn-group {
flex-direction: column;
}
.tipcalc2026-card-header h2 {
font-size: 20px;
}
}