/* Calculator Drawer Styles */
.calculator-drawer {
    position: fixed;
    top: 0;
    right: -550px;
    width: 550px;
    height: 100vh;
    background: var(--panel);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.calculator-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(124, 58, 237, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.drawer-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 700;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.drawer-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.drawer-content {
    padding: 1.5rem;
    flex: 1;
}

/* Drawer-specific calculator styles */
.drawer-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.drawer-section h3 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.85rem;
}

.drawer-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.drawer-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.drawer-field small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.drawer-field select,
.drawer-field input {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
}

.drawer-result-card {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.drawer-result-card h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.drawer-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-metric:last-child {
    border-bottom: none;
}

.drawer-metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.drawer-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.drawer-verdict {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.drawer-verdict.warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.drawer-verdict.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.drawer-verdict-emoji {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.drawer-verdict-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.drawer-verdict-message {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
}

.drawer-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    width: 100%;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    margin: 1rem 0 0.75rem;
}

.drawer-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.drawer-toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.drawer-toggle-content.open {
    max-height: 500px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .calculator-drawer {
        width: 100%;
        right: -100%;
    }
    
    .calculator-drawer.open {
        right: 0;
    }
}

