/* Default Recipe Modal */
.akef-default-recipe-intro {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.akef-default-recipe-list {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.akef-default-recipe-list::-webkit-scrollbar {
    width: 8px;
}

.akef-default-recipe-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.akef-default-recipe-list::-webkit-scrollbar-thumb {
    background-color: var(--node-border);
    border-radius: 4px;
    transition: background-color var(--transition-speed);
}

.akef-default-recipe-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-tertiary);
}

#akef-default-recipe-modal .modal-body {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

#akef-default-recipe-modal .akef-default-recipe-intro {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 1.5rem 1.5rem 1.15rem 1.5rem;
}

#akef-default-recipe-modal .akef-default-recipe-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.akef-recipe-group {
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid var(--node-border);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.akef-recipe-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.akef-recipe-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: background-color var(--transition-speed);
    border-bottom: 1px solid transparent;
}

.akef-recipe-group-header:hover {
    background-color: var(--bg-tertiary);
}

.akef-recipe-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-grow: 1;
}

.akef-recipe-header-content img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.akef-recipe-header-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.akef-recipe-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.akef-recipe-current-default {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-left: 1rem;
    text-align: right;
}

.akef-recipe-chevron {
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.akef-recipe-options {
    overflow: hidden;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--node-border);
}

.akef-recipe-option {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border-bottom: 1px solid var(--node-border);
    position: relative;
}

.akef-recipe-option:last-child {
    border-bottom: none;
}

.akef-recipe-option:hover {
    background-color: var(--bg-tertiary);
}

.akef-recipe-option.akef-selected {
    background-color: rgba(88, 166, 255, 0.08);
    border-left: 3px solid var(--accent-blue);
    padding-left: calc(1rem - 3px);
}

.akef-recipe-option.akef-selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
    font-size: 1rem;
}

.akef-recipe-option-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.akef-recipe-option-header input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
}

.akef-recipe-option-header img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.akef-recipe-option-header span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.akef-recipe-option-content {
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 0.4rem;
    margin-left: 2rem;
}

.akef-recipe-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.akef-recipe-component img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--node-border);
    background-color: var(--bg-secondary);
}

.akef-recipe-component::after {
    content: attr(data-amount);
    position: absolute;
    bottom: -8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 1px 3px;
}

.akef-recipe-arrow {
    color: var(--text-tertiary);
    font-weight: bold;
    margin: 0 0.5rem;
    font-size: 1rem;
}

#akef-default-recipes-btn {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

#akef-default-recipes-btn i {
    font-size: 1.1rem;
}

.akef-btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--node-border);
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    transition: all var(--transition-speed);
    border-radius: 8px;
}

.akef-btn-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
}

.akef-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    line-height: 1;
}

.akef-current-building-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    margin-left: 0.5rem;
    vertical-align: middle;
    border: 1px solid var(--node-border);
    background-color: var(--bg-secondary);
}

.akef-recipe-option-header input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: none;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.akef-recipe-option-header input[type="radio"]::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--node-border);
    border-radius: 50%;
    background-color: var(--bg-primary);
    transition: all var(--transition-speed);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.akef-recipe-option:hover .akef-recipe-option-header input[type="radio"]::before {
    border-color: var(--text-secondary);
}

.akef-recipe-option-header input[type="radio"]:checked::before {
    border: none;
    width: 12px;
    height: 12px;
    background-color: var(--accent-blue);
}

.akef-recipe-option-header input[type="radio"]:focus-visible::before {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.akef-recipe-option-header input[type="radio"]:checked::before {
    border: none;
    width: 12px;
    height: 12px;
    background-color: var(--accent-blue);
}

.akef-recipe-option-header input[type="radio"]:focus-visible::before {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}