/* ===================================
   CALCULATOR ENHANCEMENTS
   =================================== */

/* Progress Bar - Hidden */
#pctBar {
    display: none;
}

/* Summary Boxes - More Prominent */
#summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

#summary .box {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

#summary .box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

#summary .box>div:first-child {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#summary .box>div:first-child::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px;
}

#summary .sumline {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

#summary .sumline:not(:last-child) {
    border-bottom: 1px dashed var(--color-border);
}

#summary .sumline:last-child {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
    color: var(--color-primary);
}

/* Alcohol Badge - More Prominent */
#alcBadge {
    padding: 0.75rem 1.25rem !important;
    font-size: 1rem !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

#alcBadge b {
    font-weight: 600;
}

#alcDegVal {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Notification System */
.calculator-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calculator-notification.success {
    background: linear-gradient(135deg, #28a745 0%, #4ade80 100%);
    color: white;
}

.calculator-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #ff5757 100%);
    color: white;
}

.calculator-notification.warning {
    background: linear-gradient(135deg, #ffa500 0%, #ffb84d 100%);
    color: white;
}

.calculator-notification.info {
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    color: white;
}

.calculator-notification svg {
    flex-shrink: 0;
}

.calculator-notification .message {
    flex: 1;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Table Enhancements */
#tblPct {
    box-shadow: var(--shadow-sm);
}

#tblPct thead th {
    background: var(--color-surface);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
}

#tblPct tbody tr {
    transition: background 0.2s ease;
}

#tblPct tbody tr:hover {
    background: var(--color-bg);
}

#tblPct input {
    transition: all 0.2s ease;
}

#tblPct input:focus {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Toolbar Enhancements */
.toolbar {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.toolbar label {
    font-weight: 500;
}

/* Button Enhancements */
#normalizeBtn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

#normalizeBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Tokyo Theme Enhancements */
body.theme-tokyo #pctBar .bar {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

body.theme-tokyo #summary .box {
    border-color: rgba(0, 217, 255, 0.2);
}

body.theme-tokyo #summary .box:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

body.theme-tokyo .calculator-notification {
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #summary {
        grid-template-columns: 1fr;
    }

    .calculator-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .keyboard-hint {
        display: none;
    }
}