 :root {
    --red: #d40000;
    --red-light: #ff3c3c;
    --dark-bg: #111;
    --gray-bg: #1a1a1a;
    --text-light: #f1f1f1;
    --text-muted: #aaa;
}

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    background: url('https://advancedemolink.com/Ivan/wp-content/uploads/2025/10/fotr-bg.png') center/cover fixed, #0b0b0b;
    color: var(--text-light);
    min-height: 100vh;
}

.page-wrapper {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.calculator {
    width: 100%;
    max-width: 700px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    padding: 40px 35px;
    animation: fadeIn .8s ease;
    text-align: center;
}

h2 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 28px;
}

p.desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 15px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.grid > div {
    width: 100%;
    display: flex;
}

.grid input,
.grid select {
    flex: 1;
    min-width: 0;
}

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

input, select {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #333;
    border-radius: 10px;
    font-size: 15px;
    background: #222;
    color: var(--text-light);
    transition: .2s;
}

input:focus, select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 8px rgba(212,0,0,0.3);
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
    letter-spacing: .3px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,0,0,0.45);
}

.result {
    margin-top: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    display: none;
    text-align: left;
}

.result.visible {
    display: block;
}

.result strong {
    color: var(--red-light);
}

.table-container {
    width: 95%;
    max-width: 900px;
    margin: 50px auto 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: var(--text-light);
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #333;
}

th {
    background: var(--red);
    color: white;
    font-weight: 500;
}

.delBtn {
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s ease;
}

.delBtn:hover {
    background: #e60000;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {opacity:0; transform: translateY(15px);}
    to {opacity:1;}
}
.disclaimer {
    margin-top: 25px;
    font-size: 15px;
    color: #ccc;
    font-style: italic;
    background: rgba(255,255,255,0.05);
    padding: 12px 15px;
    border-left: 3px solid #d40000;
    border-radius: 8px;
}
