/* Disabled Calculator Cards */
.tool-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.tool-card-disabled:hover {
    transform: none !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.tool-card-disabled::before {
    display: none !important;
}

.coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 165, 0, 0.9);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

/* Calculator Components */
.calculator-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calc-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(218, 165, 32, 0.3);
}

.calc-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.calc-subtitle {
    color: var(--gold-light);
    font-size: 1.1rem;
    opacity: 0.9;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calc-panel {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(139, 69, 19, 0.2));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.calc-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--burgundy), var(--gold));
}

.panel-title {
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-icon {
    font-size: 1.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    color: var(--cream);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
    background: rgba(0, 0, 0, 0.7);
}

.form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    color: var(--cream);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.2);
}

.form-select option {
    background: var(--wine-dark);
    color: var(--cream);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: end;
}

.input-group .form-input {
    flex: 1;
}

.input-unit {
    padding: 0.8rem;
    background: rgba(218, 165, 32, 0.2);
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    color: var(--gold);
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* Buttons */
.calc-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), #f4d03f);
    border: none;
    border-radius: 10px;
    color: var(--wine-dark);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.calc-button:active {
    transform: translateY(0);
}

.calc-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.calc-button:hover::before {
    left: 100%;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-secondary-calc {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-secondary-calc:hover {
    background: var(--gold);
    color: var(--wine-dark);
}

/* Results */
.result-panel {
    background: linear-gradient(145deg, rgba(34, 139, 34, 0.2), rgba(0, 100, 0, 0.1));
    border: 2px solid rgba(34, 139, 34, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.result-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.result-title {
    color: #90EE90;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(34, 139, 34, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--cream);
    font-weight: bold;
}

.result-value {
    color: #90EE90;
    font-size: 1.1rem;
    font-weight: bold;
}

.result-main {
    background: rgba(34, 139, 34, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.result-main .result-value {
    font-size: 1.5rem;
    color: #90EE90;
}

/* Error Messages */
.error-message {
    background: rgba(220, 20, 60, 0.2);
    border: 2px solid rgba(220, 20, 60, 0.4);
    border-radius: 8px;
    padding: 1rem;
    color: #FFB6C1;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

/* Formula Display */
.formula-display {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(218, 165, 32, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.formula-main {
    font-size: 1.2rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
}

.formula-vars {
    font-size: 0.9rem;
    color: var(--gold-light);
    line-height: 1.6;
}

/* Navigation Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
}

.breadcrumb-item {
    color: var(--gold-light);
}

.breadcrumb-item a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--cream);
}

.breadcrumb-separator {
    color: var(--gold);
    margin: 0 0.5rem;
}

/* Preset Values */
.preset-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.preset-btn {
    padding: 0.3rem 0.8rem;
    background: rgba(218, 165, 32, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 6px;
    color: var(--gold);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: rgba(218, 165, 32, 0.4);
    transform: translateY(-1px);
}

/* Tips */
.tips-panel {
    background: rgba(75, 0, 130, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.tips-title {
    color: #DDA0DD;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-item {
    color: var(--cream);
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.tip-item::before {
    content: '💡';
    position: absolute;
    left: 0;
    top: 0;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive for calculators */
@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-group .form-input {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .preset-buttons {
        justify-content: center;
    }

    .calc-title {
        font-size: 2rem;
    }

    .calc-panel {
        padding: 1.5rem;
    }
}