/*-----------------------------------------------------------------
  Simple White Responsive Styles - Reverse Percentage Calculator
-----------------------------------------------------------------*/
h1{
	font-size:45px !important;
}


button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
}

button { cursor: pointer; }

/* Layout */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .container {
        padding: 3rem 1.5rem !important;
    }
}

/* Buttons */
.primary-btn {
    background-color: #2563eb !important;
    color: white !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.primary-btn:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.primary-btn:active {
    transform: translateY(0);
    background-color: #1e40af !important;
}

.secondary-btn {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e2e8f0 !important;
}

.secondary-btn:hover {
    background-color: #e2e8f0 !important;
}

.icon-btn {
    background-color: transparent !important;
    color: #64748b !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background-color: #f1f5f9;
    color: #2563eb !important;
}

/* Calculator Wrapper */
.calculator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2.5rem !important;
    color: #2563eb !important;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    width: 72px;
    height: 72px;
    border-radius: 50% !important;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Cards */
.calculator-card, .calculation-steps {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .calculator-card, .calculation-steps {
        padding: 2.5rem;
    }
}

/* Input Grid */
.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .calculator-inputs {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 2rem;
    }
    .full-width {
        grid-column: 1 / -1;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.input-wrapper, .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #64748b !important;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.dropdown-icon {
    position: absolute;
    right: 1.25rem;
    color: #64748b;
    pointer-events: none;
    font-size: 0.8rem;
}

input, select {
    width: 100%;
   padding: 5px 32px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-weight: 400;
    transition: all 0.2s ease;
    appearance: none;
}

input:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper:focus-within .input-icon, 
.select-wrapper:focus-within .input-icon {
    color: #2563eb;
}

input[readonly] {
    cursor: default;
    background-color: #f1f5f9;
}

.result input {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
    border-color: #2563eb;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 480px) {
    .button-group {
        flex-direction: row;
    }
    .button-group button {
        flex: 1;
    }
}

/* Steps Section */
.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.steps-header h3 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.steps-content {
    font-size: 0.95rem;
    color: #0f172a;
}

.calculation-line {
    margin-bottom: 0.5rem;
}

.calculation-line.indent {
    margin-left: 1.5rem;
    color: #64748b;
}

.mt-3 {
    margin-top: 1.5rem;
}

.calc-formula {
    background-color: #f1f5f9;
    padding: 1.25rem;
    border-radius: 8px !important;
    font-family: monospace;
    font-size: 1rem;
    color: #0f172a;
    margin: 0.75rem 0;
    border-left: 4px solid #2563eb !important;
    overflow-x: auto;
}

.result-line {
    font-size: 1.1rem;
    padding: 1.25rem !important;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
	letter-spacing: 1px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    text-align: center;
    color: #64748b;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

.input-error {
    animation: shake 0.4s ease-in-out;
    border-color: #ef4444 !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.result-show {
    animation: fadeIn 0.5s ease-out;
}

.copy-animation {
    position: relative;
}

.copy-animation::after {
    content: "Copied!";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a;
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 0.2s forwards, fadeIn 0.2s reverse forwards 1.3s;
    white-space: nowrap;
}
@media (max-width: 678px) {
h1{
	font-size:45px !important;
}
}