/* V Rising Dark Theme - Black & Red */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Creepster&family=Orbitron:wght@400;700&display=swap');

/* CSS Variables */
:root {
    --vrising-black: #000000;
    --vrising-dark: #0a0a0a;
    --vrising-darker: #1a1a1a;
    --vrising-red: #dc143c;
    --vrising-red-dark: #8b0000;
    --vrising-red-light: #ff4757;
    --vrising-gold: red;
    --vrising-silver: #c0c0c0;
    --vrising-gray: #2a2a2a;
    --vrising-gray-light: #3a3a3a;
    
    --font-gothic: 'Creepster', cursive;
    --font-medieval: 'Cinzel', serif;
    --font-tech: 'Orbitron', monospace;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-medieval);
    background: var(--vrising-black);
    color: var(--vrising-silver);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Performance optimizations */
.main-container,
.responsive-panel,
.responsive-card {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Smooth transitions for all interactive elements */
button,
input,
select,
.nav-link,
.summary-card,
.material-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--vrising-red);
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--vrising-red);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.2);
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--vrising-red);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.blood-mist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 30% 70%, 
        rgba(220, 20, 60, 0.1) 0%, 
        transparent 50%
    ),
    radial-gradient(
        ellipse at 70% 30%, 
        rgba(139, 0, 0, 0.1) 0%, 
        transparent 50%
    );
    animation: mistMove 30s ease-in-out infinite;
}

@keyframes mistMove {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.shadow-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--vrising-black) 0%,
        var(--vrising-darker) 50%,
        var(--vrising-black) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: var(--vrising-red);
}

.loading-skull {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-family: var(--font-medieval);
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 0 20px var(--vrising-red);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Social Media & Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(75, 0, 0, 0.95));
    border: 2px solid var(--vrising-red);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.3);
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-family: var(--font-gothic);
    color: var(--vrising-red);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px var(--vrising-red);
}

.login-header p {
    color: var(--vrising-silver);
    font-size: 1.1rem;
}

.form-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--vrising-red);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: rgba(220, 20, 60, 0.1);
    border: none;
    color: var(--vrising-silver);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-medieval);
    font-weight: 600;
}

.tab-btn.active {
    background: var(--vrising-red);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: rgba(220, 20, 60, 0.2);
}

.form-content {
    display: none;
}

.form-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--vrising-red);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.medieval-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 10px;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.medieval-input:focus {
    border-color: var(--vrising-red);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
    outline: none;
}

.medieval-input::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

select.medieval-input {
    cursor: pointer;
}

textarea.medieval-input {
    min-height: 100px;
    resize: vertical;
}

.gothic-button {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-content {
    position: relative;
    z-index: 2;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--vrising-red), var(--vrising-red-dark));
    border: 2px solid var(--vrising-red);
    border-radius: 12px;
    color: white;
    font-family: var(--font-medieval);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--vrising-red), var(--vrising-red-light));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gothic-button:hover .btn-glow {
    opacity: 1;
}

.gothic-button:hover .btn-content {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.gothic-button:active .btn-content {
    transform: translateY(0);
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.alert-error {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid var(--vrising-red);
    color: var(--vrising-red);
}

.alert-success {
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.password-requirements {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--vrising-silver);
}

.password-requirements ul {
    margin: 5px 0 0 20px;
}

.password-requirements li {
    margin: 2px 0;
}

.requirement.valid {
    color: #00ff00;
}

.requirement.invalid {
    color: var(--vrising-red);
}

/* Timeline Specific Styles */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-header {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(75, 0, 0, 0.95));
    border: 2px solid var(--vrising-red);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-details h2 {
    color: var(--vrising-red);
    margin: 0;
    font-family: var(--font-gothic);
}

.user-details p {
    color: var(--vrising-silver);
    margin: 5px 0;
}

.logout-btn {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid var(--vrising-red);
    color: var(--vrising-red);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--vrising-red);
    color: white;
}

.create-post-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(75, 0, 0, 0.95));
    border: 2px solid var(--vrising-red);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.create-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.create-post-header h3 {
    color: var(--vrising-red);
    margin: 0 0 0 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

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

.post-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(75, 0, 0, 0.95));
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: var(--vrising-red);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.post-header {
    padding: 20px;
    border-bottom: 1px solid rgba(220, 20, 60, 0.2);
}

.post-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--vrising-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.user-info-post {
    margin-left: 15px;
    flex: 1;
}

.user-info-post h4 {
    color: var(--vrising-red);
    margin: 0;
    font-size: 18px;
}

.user-info-post p {
    color: var(--vrising-silver);
    margin: 2px 0;
    font-size: 14px;
}

.post-time {
    color: var(--vrising-silver);
    font-size: 12px;
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.post-description {
    color: var(--vrising-silver);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.meta-item {
    color: var(--vrising-silver);
    font-size: 14px;
}

.meta-item i {
    color: var(--vrising-red);
    margin-right: 5px;
}

.post-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(220, 20, 60, 0.2);
}

.action-btn {
    background: none;
    border: none;
    color: var(--vrising-silver);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: rgba(220, 20, 60, 0.2);
    color: var(--vrising-red);
}

.action-btn.liked {
    color: var(--vrising-red);
    background: rgba(220, 20, 60, 0.2);
}

.construction-badge {
    background: var(--vrising-red);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.no-posts {
    text-align: center;
    padding: 50px;
    color: var(--vrising-silver);
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: var(--vrising-silver);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--vrising-red);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive Grid System */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.responsive-panel {
    width: 100%;
    min-height: fit-content;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.responsive-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.responsive-card:hover {
    transform: translateY(-2px);
}

.responsive-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.responsive-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.responsive-results {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Flexbox utilities */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.flex-item {
    flex: 1 1 auto;
    min-width: 0;
}

/* Improved responsive grid with container queries support */
@supports (container-type: inline-size) {
    .main-content {
        container-type: inline-size;
    }
    
    @container (min-width: 768px) {
        .responsive-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @container (min-width: 1200px) {
        .responsive-grid {
            grid-template-columns: 1fr 1.2fr;
        }
    }
}

/* Fallback for browsers without container queries */
@supports not (container-type: inline-size) {
    @media (min-width: 768px) {
        .responsive-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    
    @media (min-width: 1200px) {
        .responsive-grid {
            grid-template-columns: 1fr 1.2fr;
        }
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(42, 42, 42, 0.8) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Header Navigation */
.header-navigation {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(139, 0, 0, 0.2));
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    color: var(--vrising-silver);
    text-decoration: none;
    font-family: var(--font-medieval);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.4), rgba(139, 0, 0, 0.4));
    border-color: rgba(220, 20, 60, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.6), rgba(139, 0, 0, 0.6));
    border-color: var(--vrising-red);
    color: white;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.4);
}

.nav-link i {
    font-size: 1.1em;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--vrising-red-dark) 0%, var(--vrising-red) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--vrising-red);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--vrising-red) 0%, var(--vrising-red-light) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.nav-link i {
    font-size: 0.95rem;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(220, 20, 60, 0.1),
        transparent,
        rgba(220, 20, 60, 0.1),
        transparent
    );
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.header-ornaments {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.ornament-left,
.ornament-right {
    font-size: 3rem;
    color: var(--vrising-red);
    animation: float-ornament 4s ease-in-out infinite;
}

.ornament-right {
    animation-delay: 2s;
}

@keyframes float-ornament {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.title-section {
    flex: 1;
    max-width: 800px;
}

.main-title {
    font-family: var(--font-gothic);
    font-size: 4rem;
    color: var(--vrising-red);
    text-shadow: 
        0 0 20px var(--vrising-red),
        0 0 40px var(--vrising-red),
        0 0 60px var(--vrising-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-skull {
    font-size: 5rem;
    animation: skull-glow 3s ease-in-out infinite;
}

@keyframes skull-glow {
    0%, 100% {
        text-shadow: 0 0 20px var(--vrising-red);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 40px var(--vrising-red), 0 0 60px var(--vrising-red);
        transform: scale(1.1);
    }
}

.subtitle {
    font-family: var(--font-medieval);
    font-size: 1.8rem;
    color: var(--vrising-silver);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.description {
    font-family: var(--font-medieval);
    font-size: 1rem;
    color: rgba(192, 192, 192, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* Panel Base Styles */
.calculator-panel,
.results-panel {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(42, 42, 42, 0.9) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.calculator-panel::before,
.results-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(220, 20, 60, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
}

/* Calculator Panel */
.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vrising-red-dark);
}

.panel-header i {
    font-size: 1.5rem;
    color: var(--vrising-red);
    animation: icon-glow 2s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--vrising-red);
    }
    50% {
        text-shadow: 0 0 20px var(--vrising-red), 0 0 30px var(--vrising-red);
    }
}

.panel-header h3 {
    font-family: var(--font-medieval);
    font-size: 1.5rem;
    color: var(--vrising-silver);
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-medieval);
    font-size: 1.1rem;
    color: var(--vrising-silver);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group label i {
    color: var(--vrising-red);
    font-size: 1rem;
}

/* Select Wrapper - Melhorado */
.select-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.medieval-select {
    width: 100%;
    padding: 1.2rem 4rem 1.2rem 3.5rem;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(26, 26, 26, 0.98) 30%,
        rgba(42, 42, 42, 0.95) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    border: 3px solid var(--vrising-red-dark);
    border-radius: 18px;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 1.15rem;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(220, 20, 60, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.medieval-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 20, 60, 0.3),
        rgba(255, 71, 87, 0.2),
        rgba(220, 20, 60, 0.3),
        transparent
    );
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.medieval-select::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        var(--vrising-red-dark),
        var(--vrising-red),
        var(--vrising-red-light),
        var(--vrising-red),
        var(--vrising-red-dark)
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.medieval-select:hover::before {
    left: 100%;
}

.medieval-select:hover::after {
    opacity: 0.6;
    animation: border-glow 2s ease-in-out infinite;
}

.medieval-select:focus::after {
    opacity: 0.8;
    animation: border-glow 1.5s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.4;
        filter: blur(2px);
    }
    50% {
        opacity: 0.8;
        filter: blur(4px);
    }
}

.medieval-select:focus {
    outline: none;
    border-color: var(--vrising-red);
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(220, 20, 60, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px) scale(1.02);
}

.medieval-select:hover {
    border-color: var(--vrising-red);
    box-shadow: 
        0 0 25px rgba(220, 20, 60, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px) scale(1.01);
}

/* Estilos para opções do select com ícones PNG */
.medieval-select option {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(26, 26, 26, 0.98) 50%,
        rgba(0, 0, 0, 0.98) 100%
    );
    color: var(--vrising-silver);
    padding: 12px 16px;
    font-family: var(--font-medieval);
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.medieval-select option:hover {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.2) 0%,
        rgba(139, 0, 0, 0.3) 50%,
        rgba(220, 20, 60, 0.2) 100%
    );
    color: var(--vrising-red-light);
}

.medieval-select option:checked {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.4) 0%,
        rgba(139, 0, 0, 0.5) 50%,
        rgba(220, 20, 60, 0.4) 100%
    );
    color: var(--vrising-silver);
    font-weight: 600;
}

/* Ícones PNG nas opções */
.medieval-select option .item-icon {
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

.select-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vrising-red);
    font-size: 1.4rem;
    pointer-events: none;
    animation: icon-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--vrising-red));
    z-index: 2;
}

@keyframes icon-pulse {
    0%, 100% {
        text-shadow: 
            0 0 15px var(--vrising-red),
            0 0 25px var(--vrising-red);
        transform: translateY(-50%) scale(1);
    }
    50% {
        text-shadow: 
            0 0 25px var(--vrising-red), 
            0 0 40px var(--vrising-red),
            0 0 60px var(--vrising-red-light);
        transform: translateY(-50%) scale(1.1);
    }
}

.select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vrising-red);
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.4s ease;
}

.select-wrapper:hover .select-arrow {
    transform: translateY(-50%) rotate(180deg) scale(1.2);
    color: var(--vrising-red-light);
    text-shadow: 0 0 15px var(--vrising-red);
}

.select-wrapper:focus-within .select-arrow {
    transform: translateY(-50%) rotate(180deg) scale(1.3);
    animation: arrow-glow 1s ease-in-out infinite;
}

@keyframes arrow-glow {
    0%, 100% {
        text-shadow: 0 0 15px var(--vrising-red);
    }
    50% {
        text-shadow: 0 0 25px var(--vrising-red), 0 0 35px var(--vrising-red);
    }
}

/* Input Styles */
.medieval-input {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(26, 26, 26, 0.9) 100%
    );
    border: 2px solid var(--vrising-red-dark);
    border-radius: 10px;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.medieval-input:focus {
    outline: none;
    border-color: var(--vrising-red);
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.medieval-input::placeholder {
    color: rgba(192, 192, 192, 0.5);
}

/* Machine Configuration Section */
.machine-config {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(26, 26, 26, 0.95) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    border: 2px solid var(--vrising-red-dark);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.machine-config h3 {
    font-family: var(--font-medieval);
    color: var(--vrising-red);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px var(--vrising-red);
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.machine-item {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(42, 42, 42, 0.9) 100%
    );
    border: 1px solid var(--vrising-red-dark);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.machine-item:hover {
    border-color: var(--vrising-red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    transform: translateY(-2px);
}

.machine-item label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.machine-item label i {
    color: var(--vrising-red);
    font-size: 1.2rem;
}

.machine-item .medieval-input {
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
}



/* Modal de Configuração de Máquinas */
.machine-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.machine-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(
        135deg,
        var(--vrising-black) 0%,
        var(--vrising-darker) 50%,
        var(--vrising-black) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--vrising-red-dark);
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.2) 0%,
        rgba(220, 20, 60, 0.1) 100%
    );
}

.modal-header h3 {
    font-family: var(--font-medieval);
    color: var(--vrising-red);
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px var(--vrising-red);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.modal-close {
    background: none;
    border: 2px solid var(--vrising-red-dark);
    color: var(--vrising-red);
    font-size: 1.2rem;
    width: 40px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--vrising-red-dark);
    color: var(--vrising-silver);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
}

.modal-section h4 i {
    color: var(--vrising-red);
}

.machine-types-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--vrising-red-dark);
    border-radius: 10px;
    padding: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.machine-type-section {
    margin-bottom: 2rem;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.1) 0%,
        rgba(75, 0, 130, 0.1) 100%
    );
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.machine-type-section:last-child {
    margin-bottom: 0;
}

.machine-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.2) 0%,
        rgba(220, 20, 60, 0.1) 100%
    );
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.machine-type-header:hover {
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.3) 0%,
        rgba(220, 20, 60, 0.2) 100%
    );
}

.machine-type-header i {
    color: var(--vrising-red);
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.machine-type-header span {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

.machine-count-badge {
    background: rgba(220, 20, 60, 0.2);
    color: var(--vrising-red);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.machine-items-list {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.no-items-message {
    text-align: center;
    color: var(--vrising-silver);
    opacity: 0.6;
    padding: 1rem;
    font-family: var(--font-medieval);
    font-style: italic;
}

/* Estilos do modal de receitas removidos para restaurar configuração anterior */

.no-items-message i {
    color: var(--vrising-red-dark);
    margin-right: 0.5rem;
}

.machine-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 1rem;
    padding: 10px;
    justify-items: center;
}

.machine-item-config {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.15) 0%,
    rgba(220, 20, 60, 0.15) 100%
  );
  border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Novo layout em quadrados */
.machine-item-square {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 130px;
    height: 160px;
    padding: 12px;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(45, 45, 45, 0.95) 100%
    );
    border: 2px solid #444;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.machine-item-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--vrising-red) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-item-square:hover {
    border-color: #8B4513;
    background: linear-gradient(
        135deg,
        rgba(42, 24, 16, 0.95) 0%,
        rgba(61, 36, 24, 0.95) 100%
    );
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(139, 69, 19, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.machine-item-square:hover::before {
    opacity: 1;
}

/* Elementos do layout em quadrados */
.item-icon-slot {
    position: relative;
    width: 48px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
    rgba(220, 20, 60, 0.3) 100%
  );
  border: 2px solid rgba(220, 20, 60, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
}

.item-icon-slot .item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.item-icon-slot .item-quantity-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(
        135deg,
        var(--vrising-red) 0%,
        var(--vrising-red-dark) 100%
    );
    color: white;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.3rem;
    border-radius: 3px;
    border: 1px solid var(--vrising-red-light);
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.item-name-compact {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 0 3px rgba(192, 192, 192, 0.3);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-time-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.item-time-compact i {
    color: var(--vrising-red);
    font-size: 0.65rem;
}

.machine-input-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.machine-input-square {
    width: 60px;
    height: 32px;
    padding: 0.3rem;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(75, 0, 130, 0.2) 100%
    );
    border: 2px solid rgba(75, 0, 130, 0.6);
    border-radius: 6px;
    color: #dc143c;
    text-align: center;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.machine-input-square:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 
        0 0 10px rgba(220, 20, 60, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.4);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(75, 0, 130, 0.3) 100%
    );
    transform: scale(1.05);
}

.machine-input-square:hover {
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.machine-label-compact {
    color: #dc143c;
    font-family: var(--font-medieval);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 0 3px rgba(220, 20, 60, 0.3);
    text-align: center;
}

.machine-item-config::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--vrising-red) 0%,
        #dc143c  100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.machine-item-config:hover {
    border-color: rgba(220, 20, 60, 0.6);
    background: linear-gradient(
        135deg,
        rgba(75, 0, 130, 0.25) 0%,
        rgba(139, 0, 0, 0.25) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.machine-item-config:hover::before {
    opacity: 1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(75, 0, 130, 0.3);
}

.item-icon-container {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(75, 0, 130, 0.3) 100%
    );
    border: 2px solid rgba(75, 0, 130, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.item-quantity-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: linear-gradient(
        135deg,
        var(--vrising-red) 0%,
        var(--vrising-red-dark) 100%
    );
    color: white;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--vrising-red-light);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.item-name {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(192, 192, 192, 0.3);
}

.item-time-display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 500;
}

.item-time-display i {
    color: var(--vrising-red);
    font-size: 0.8rem;
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
}

.item-production,
.item-time {
    background: rgba(220, 20, 60, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    font-family: var(--font-tech);
    font-weight: 500;
    color: var(--vrising-red-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-production::before {
    content: '⚙️';
    font-size: 0.9rem;
}

.item-time::before {
    content: '⏱️';
    font-size: 0.9rem;
}

.item-quantity {
    font-family: var(--font-tech);
    color: #dc143c;
    font-size: 0.9rem;
    background: rgba(220, 20, 60, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-quantity::before {
    content: '📦';
    font-size: 0.9rem;
}

.item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(220, 20, 60, 0.3);
}

.machine-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.machine-input-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.machine-count-display {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.2) 0%,
        rgba(139, 0, 0, 0.3) 100%
    );
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 2px solid rgba(220, 20, 60, 0.4);
    min-width: 50px;
    text-align: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(220, 20, 60, 0.1);
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
}

.item-machine-input {
    width: 80px;
    height: 38px;
    padding: 0.6rem;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
    rgba(220, 20, 60, 0.1) 100%
  );
  border: 2px solid rgba(220, 20, 60, 0.6);
    border-radius: 8px;
    color: #9370DB;
    text-align: center;
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.item-machine-input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
    rgba(220, 20, 60, 0.2) 100%
  );
    transform: scale(1.05);
}

.item-machine-input:hover {
    border-color: rgba(220, 20, 60, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.item-machine-label {
    color: #9370DB;
    font-family: var(--font-medieval);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.3);
}

.specific-machine-item {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.1) 0%,
    rgba(139, 0, 0, 0.1) 100%
  );
  border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.specific-machine-item:last-child {
    margin-bottom: 0;
}

.specific-item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.specific-item-name {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-weight: 600;
}

.specific-machine-type {
    font-family: var(--font-tech);
    color: #9370DB;
    font-size: 0.9rem;
    background: rgba(220, 20, 60, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.specific-machine-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--vrising-red-dark);
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.1) 0%,
        rgba(220, 20, 60, 0.05) 100%
    );
}

.modal-footer .gothic-button {
    width: auto;
    min-width: 180px;
}

/* Botão de configuração avançada */
.machine-modal-trigger {
    margin-top: 1.5rem;
    text-align: center;
}

.machine-modal-trigger .gothic-button {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.8) 0%,
    rgba(139, 0, 0, 0.9) 50%,
    rgba(220, 20, 60, 0.8) 100%
  );
    border-color: #dc143c;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.machine-modal-trigger .gothic-button:hover {
    box-shadow: 
        0 5px 25px rgba(220, 20, 60, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Gothic Button */
.gothic-button {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(
        135deg,
        var(--vrising-red-dark) 0%,
        var(--vrising-red) 50%,
        var(--vrising-red-dark) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 12px;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.gothic-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 25px rgba(220, 20, 60, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

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

.gothic-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.gothic-button:hover .btn-glow {
    left: 100%;
}

/* Material Info */
.material-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--vrising-red-dark);
    border-radius: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.material-info h4 {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.material-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.material-name {
    font-family: var(--font-medieval);
    color: var(--vrising-red);
    font-size: 1.2rem;
    font-weight: 600;
}

.material-fragments {
    font-family: var(--font-tech);
    color: red;
    font-size: 0.9rem;
}

/* Results Panel */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(192, 192, 192, 0.6);
}

.empty-icon {
    font-size: 4rem;
    color: var(--vrising-red);
    margin-bottom: 2rem;
    opacity: 0.5;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-family: var(--font-medieval);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(192, 192, 192, 0.7);
}

.empty-state p {
    font-family: var(--font-medieval);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(26, 26, 26, 0.9) 100%
    );
    border: 1px solid var(--vrising-red-dark);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    border-color: var(--vrising-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.2);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 20, 60, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.summary-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 2rem;
    color: var(--vrising-red);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-label {
    display: block;
    font-family: var(--font-medieval);
    font-size: 0.9rem;
    color: rgba(192, 192, 192, 0.8);
    margin-bottom: 0.5rem;
}

.card-value {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vrising-red);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vrising-red-dark);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header i {
    font-size: 1.5rem;
    color: var(--vrising-red);
}

.section-header h3 {
    font-family: var(--font-medieval);
    font-size: 1.5rem;
    color: var(--vrising-silver);
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

/* Export Button */
.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.8) 0%,
        rgba(220, 20, 60, 0.9) 100%
    );
    border: 1px solid var(--vrising-red);
    border-radius: 8px;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.9) 0%,
        rgba(139, 0, 0, 0.8) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* Árvore de Habilidades - Skill Tree */
.skill-tree {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
    border: 3px solid #444;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.8),
        inset 0 2px 10px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: visible;
    min-height: 300px;
}

.skill-tree::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skill-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.skill-level {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
}

.level-connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, #666 0%, #999 50%, #666 100%);
    position: relative;
    margin: 0 auto;
}

.level-connector::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    }
}

/* Nós da Árvore de Habilidades */
.skill-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #555;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.skill-node:hover {
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 0, 0, 0.3);
    border-color: red;
}

/* Produto Final */
.skill-node.final-product {
    width: 100px;
    height: 100px;
    border: 4px solid #e74c3c;
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #c0392b 100%);
    box-shadow: 
        0 8px 25px rgba(231, 76, 60, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    animation: finalProductGlow 3s ease-in-out infinite;
}

@keyframes finalProductGlow {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(231, 76, 60, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 35px rgba(231, 76, 60, 0.6),
            0 0 30px rgba(231, 76, 60, 0.4),
            inset 0 2px 8px rgba(255, 255, 255, 0.3);
    }
}

.skill-node.final-product:hover {
    border-color: #ff6b6b;
    box-shadow: 
        0 10px 35px rgba(231, 76, 60, 0.7),
        0 0 40px rgba(231, 76, 60, 0.5);
}

/* Material Intermediário */
.skill-node.intermediate {
    border: 3px solid #3498db;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 50%, #2980b9 100%);
    box-shadow: 
        0 5px 15px rgba(52, 152, 219, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.15);
}

.skill-node.intermediate:hover {
    border-color: #5dade2;
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.5),
        0 0 20px rgba(52, 152, 219, 0.3);
}

/* Material Básico */
.skill-node.basic-material {
    border: 3px solid #27ae60;
    background: linear-gradient(135deg, #229954 0%, #27ae60 50%, #229954 100%);
    box-shadow: 
        0 5px 15px rgba(39, 174, 96, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.15);
}

.skill-node.basic-material:hover {
    border-color: #58d68d;
    box-shadow: 
        0 8px 25px rgba(39, 174, 96, 0.5),
        0 0 20px rgba(39, 174, 96, 0.3);
}

/* Ícone e Quantidade do Nó */
.skill-icon {
    font-size: 2em;
    margin-bottom: 2px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
    animation: skillIconFloat 3s ease-in-out infinite;
}

@keyframes skillIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.skill-quantity {
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 0.7em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(220, 20, 60, 0.9);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

/* Ingredientes Mini dentro do Nó */
.node-ingredients {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}

.ingredient-mini {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 18px;
    transition: all 0.2s ease;
    cursor: help;
}

.ingredient-mini:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, 0.9);
    border-color: #555;
}

.ingredient-mini-icon {
    font-size: 0.6em;
    line-height: 1;
    margin-bottom: 2px;
}

.ingredient-mini-qty {
    font-size: 0.6em;
    color: #fff;
    font-weight: bold;
    line-height: 1;
}

/* Ingrediente Básico (Verde) */
.ingredient-mini.basic-ingredient {
    border-color: #27ae60;
    background: rgb(11 65 34);
    
}

.ingredient-mini.basic-ingredient:hover {
    border-color: #58d68d;
    background: rgba(39, 174, 96, 0.3);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

/* Estilos para ícones de imagem */
.item-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: all 0.2s ease;
}

.item-icon:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) brightness(1.1);
    transform: scale(1.1);
}

/* Skill Node Expansion */
.skill-expansion {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    margin-top: 10px;
    border: 2px solid #2c3e50;
    position: relative;
    z-index: 1;
}

.skill-node.expanded .skill-expansion {
    max-height: 450px !important;
    opacity: 1 !important;
    border: 2px solid red;
    display: block !important;
    overflow: visible !important;
    position: fixed;
    z-index: 9999;
    width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    left: auto;
    top: auto;
}

.expansion-header {
     background: linear-gradient(135deg, #2c3e50, #34495e);
     color: white;
     padding: 12px 15px;
     display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
}

.expansion-header h4 {
    margin: 0;
    font-size: 16px;
}

.expansion-quantity {
     background: rgba(255, 0, 0, 0.2);
     color: white;
     padding: 4px 8px;
     border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
}

.expansion-body {
    padding: 15px;
}

.expansion-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.expansion-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(52, 73, 93, 0.3);
    border-radius: 6px;
    border: 1px solid #34495e;
}

.info-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.info-text {
    color: #ecf0f1;
    font-size: 13px;
    font-weight: 500;
}

.expansion-necessita {
    margin-top: 15px;
}

.necessita-header {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #34495e;
}

.necessita-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.necessita-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(52, 73, 93, 0.4);
    border-radius: 6px;
    border-left: 3px solid rgb(245, 245, 245);
}

.ingredient-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.ingredient-name {
    flex: 1;
    color: #ecf0f1;
    font-size: 14px;
}

.ingredient-qty {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.skill-node {
    position: relative;
}

.skill-node.expanded {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    z-index: 9998;
    position: relative;
    border: 2px solid red !important;
    color: rgb(255, 255, 255);
}

/* Seção do Objetivo */
.goal-section {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: 3px solid #27ae60;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
    animation: goalPulse 3s ease-in-out infinite;
}

@keyframes goalPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3); }
    50% { box-shadow: 0 8px 35px rgba(39, 174, 96, 0.5), 0 0 20px rgba(39, 174, 96, 0.2); }
}

.goal-header h3 {
    color: #fff;
    font-size: 1.4em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.goal-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-size: 1.1em;
}

.goal-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.goal-icon {
    font-size: 3em;
    animation: goalIconSpin 4s linear infinite;
}

@keyframes goalIconSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.goal-info {
    flex: 1;
}

.goal-name {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.goal-quantity {
    color: red;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.goal-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
}

/* Seção de Passos de Produção */
.production-steps {
    background: linear-gradient(135deg, red 0%, red 100%);
    border: 3px solid red;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}

.steps-header h3 {
    color: #fff;
    font-size: 1.4em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.steps-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    font-size: 1.1em;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.production-step {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: stepSlideIn 0.6s ease-out;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.production-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-icon {
    font-size: 2em;
    animation: stepIconBounce 2s ease-in-out infinite;
}

@keyframes stepIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.step-info {
    flex: 1;
}

.step-title {
    color: #fff;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.step-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.step-quantity {
    color: #f1c40f;
    font-weight: bold;
}

.step-time {
    color: #e74c3c;
    font-weight: bold;
}

.step-machine {
    color: #dc143c;
    font-weight: bold;
}

.step-arrow {
    text-align: center;
    font-size: 2em;
    color: #fff;
    margin: 10px 0;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Ingredientes do Passo */
.step-ingredients {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.ingredients-title {
    color: #fff;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ingredient-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.ingredient-icon {
    font-size: 1.2em;
}

.ingredient-name {
    color: #fff;
    font-size: 0.9em;
}

.ingredient-quantity {
    color: #f1c40f;
    font-weight: bold;
    font-size: 0.9em;
}

.node-content {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(26, 26, 26, 0.9) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    border: 2px solid var(--vrising-red-dark);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.node-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 20, 60, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.node-content:hover::before {
    left: 100%;
}

.node-content:hover {
    border-color: var(--vrising-red);
    box-shadow: 
        0 0 25px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.node-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.node-icon {
    width: 50px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--vrising-red-dark) 0%,
        var(--vrising-red) 50%,
        var(--vrising-red-light) 100%
    );
    border: 3px solid var(--vrising-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vrising-silver);
    font-size: 1.5rem;
    position: relative;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.4),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    animation: iconRotate 10s linear infinite;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.node-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: conic-gradient(
        from 0deg,
        var(--vrising-red),
        var(--vrising-red-light),
        var(--vrising-red),
        var(--vrising-red-dark),
        var(--vrising-red)
    );
    border-radius: 50%;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.node-icon:hover {
    transform: scale(1.1);
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.node-details h4 {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.node-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(192, 192, 192, 0.7);
}

.node-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.node-quantity {
    font-family: var(--font-tech);
    color: var(--vrising-red);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Seção de Recursos Necessários */
.resources-section {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.3);
}

.resources-header h3 {
    color: #fff;
    font-size: 1.4em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.resources-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    font-size: 1.1em;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.resource-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: resourceSlideIn 0.6s ease-out;
}

@keyframes resourceSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.resource-icon {
    font-size: 2.5em;
    animation: resourceIconFloat 3s ease-in-out infinite;
}

@keyframes resourceIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.resource-info {
    flex: 1;
}

.resource-name {
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.resource-quantity {
    color: #f1c40f;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.resource-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
}

/* Basic Materials Grid - Melhorada */
.basic-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.material-item {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(26, 26, 26, 0.9) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    border: 2px solid var(--vrising-red-dark);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: materialSlideIn 0.6s ease;
}

@keyframes materialSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.material-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(220, 20, 60, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.material-item:hover::before {
    left: 100%;
}

.material-item:hover {
    border-color: var(--vrising-red);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 10px 25px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.material-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.material-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(
        135deg,
        var(--vrising-red-dark) 0%,
        var(--vrising-red) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    animation: materialIconPulse 2s ease-in-out infinite;
}

@keyframes materialIconPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 20, 60, 0.5);
        transform: scale(1.05);
    }
}

.material-name {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.material-quantity {
    font-family: var(--font-tech);
    color: var(--vrising-red);
    font-weight: 700;
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.1) 0%,
        rgba(139, 0, 0, 0.2) 100%
    );
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--vrising-red-dark);
    position: relative;
    z-index: 1;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(42, 42, 42, 0.9) 100%
    );
    border: 1px solid var(--vrising-red);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--vrising-silver);
    font-family: var(--font-medieval);
    font-size: 0.9rem;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-color: red;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.toast.error {
    border-color: var(--vrising-red-light);
    box-shadow: 
        0 0 20px rgba(255, 71, 87, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease;
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Custom Scrollbar */
.skill-tree::-webkit-scrollbar,
.medieval-select::-webkit-scrollbar {
    width: 8px;
}

.skill-tree::-webkit-scrollbar-track,
.medieval-select::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.skill-tree::-webkit-scrollbar-thumb,
.medieval-select::-webkit-scrollbar-thumb {
    background: var(--vrising-red-dark);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.skill-tree::-webkit-scrollbar-thumb:hover,
.medieval-select::-webkit-scrollbar-thumb:hover {
    background: var(--vrising-red);
}

/* Estilos avançados para o dropdown do select */
.medieval-select {
    background-color: var(--vrising-black) !important;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho animado no select */
.medieval-select::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(220, 20, 60, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: selectShimmer 4s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes selectShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.medieval-select option {
    background-color: var(--vrising-black) !important;
    background-image: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(26, 26, 26, 0.95) 20%,
        rgba(42, 42, 42, 0.92) 40%,
        rgba(35, 35, 35, 0.94) 60%,
        rgba(20, 20, 20, 0.96) 80%,
        rgba(0, 0, 0, 0.98) 100%
    ) !important;
    color: var(--vrising-silver) !important;
    padding: 14px 20px !important;
    border: none !important;
    font-family: var(--font-medieval) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(139, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(220, 20, 60, 0.3) !important;
    border-top: 1px solid rgba(60, 60, 60, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

/* Efeito de partículas nas opções */
.medieval-select option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(220, 20, 60, 0.1) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 50%,
        rgba(139, 0, 0, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.medieval-select option:hover {
    background-color: var(--vrising-red-dark) !important;
    background-image: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.4) 0%,
        rgba(180, 20, 20, 0.5) 25%,
        rgba(139, 0, 0, 0.6) 50%,
        rgba(180, 20, 20, 0.5) 75%,
        rgba(220, 20, 60, 0.4) 100%
    ) !important;
    color: var(--vrising-red-light) !important;
    text-shadow: 
        0 0 12px rgba(220, 20, 60, 0.8),
        0 0 20px rgba(255, 100, 100, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.9) !important;
    transform: translateX(6px) scale(1.02) !important;
    border-left: 4px solid rgba(220, 20, 60, 0.9) !important;
    box-shadow: 
        inset 0 0 20px rgba(220, 20, 60, 0.2),
        0 0 15px rgba(220, 20, 60, 0.3) !important;
}

.medieval-select option:hover::before {
    opacity: 1;
}

.medieval-select option:checked,
.medieval-select option:selected {
    background-color: var(--vrising-red) !important;
    background-image: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.8) 0%,
        rgba(255, 50, 80, 0.7) 25%,
        rgba(139, 0, 0, 0.9) 50%,
        rgba(255, 50, 80, 0.7) 75%,
        rgba(220, 20, 60, 0.8) 100%
    ) !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(220, 20, 60, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9) !important;
    border-left: 5px solid rgba(255, 255, 255, 0.9) !important;
    transform: translateX(8px) scale(1.05) !important;
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 0 25px rgba(220, 20, 60, 0.5) !important;
    animation: selectedPulse 2s infinite alternate !important;
}

@keyframes selectedPulse {
    0% { 
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 0.9),
            0 0 25px rgba(220, 20, 60, 0.8);
    }
    100% { 
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 35px rgba(220, 20, 60, 1);
    }
}

/* Força o tema escuro no dropdown */
select.medieval-select {
    color-scheme: dark;
}

/* Webkit específico para dropdown com melhorias avançadas */
.medieval-select::-webkit-list-button {
    background: linear-gradient(135deg, 
        rgba(20, 20, 20, 0.9), 
        rgba(40, 40, 40, 0.8)) !important;
    color: var(--vrising-silver) !important;
    border: 1px solid rgba(139, 0, 0, 0.5) !important;
    border-radius: 4px !important;
}

.medieval-select::-webkit-listbox {
    background: linear-gradient(180deg, 
        rgba(5, 5, 5, 0.98) 0%,
        rgba(15, 15, 15, 0.95) 25%,
        rgba(25, 25, 25, 0.92) 50%,
        rgba(15, 15, 15, 0.95) 75%,
        rgba(5, 5, 5, 0.98) 100%) !important;
    border: 3px solid transparent !important;
    border-image: linear-gradient(45deg, 
        rgba(139, 0, 0, 0.8), 
        rgba(220, 20, 60, 0.9), 
        rgba(255, 50, 80, 0.7),
        rgba(220, 20, 60, 0.9),
        rgba(139, 0, 0, 0.8)) 1 !important;
    border-radius: 15px !important;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.9),
        inset 0 2px 10px rgba(139, 0, 0, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(220, 20, 60, 0.4),
        0 0 60px rgba(139, 0, 0, 0.2) !important;
    backdrop-filter: blur(3px) !important;
    position: relative !important;
}

/* Efeito de brilho no listbox */
.medieval-select::-webkit-listbox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(220, 20, 60, 0.05) 50%,
        transparent 60%
    );
    animation: listboxShimmer 3s infinite;
    pointer-events: none;
}

@keyframes listboxShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.medieval-select::-webkit-listbox-option {
    background: transparent !important;
    color: var(--vrising-silver) !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(220, 20, 60, 0.3) !important;
    border-top: 1px solid rgba(60, 60, 60, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
}

.medieval-select::-webkit-listbox-option:hover {
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.3) 0%,
        rgba(139, 0, 0, 0.4) 50%,
        rgba(220, 20, 60, 0.3) 100%) !important;
    color: var(--vrising-red-light) !important;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.6) !important;
    transform: translateX(4px) !important;
    border-left: 3px solid rgba(220, 20, 60, 0.8) !important;
}

/* Scrollbar customizada para o dropdown */
.medieval-select::-webkit-scrollbar {
    width: 14px !important;
    background: rgba(20, 20, 20, 0.8) !important;
}

.medieval-select::-webkit-scrollbar-track {
    background: linear-gradient(180deg, 
        rgba(10, 10, 10, 0.9), 
        rgba(30, 30, 30, 0.8),
        rgba(10, 10, 10, 0.9)) !important;
    border-radius: 7px !important;
    border: 1px solid rgba(60, 60, 60, 0.3) !important;
}

.medieval-select::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        rgba(139, 0, 0, 0.9), 
        rgba(220, 20, 60, 1),
        rgba(255, 50, 80, 0.8),
        rgba(220, 20, 60, 1),
        rgba(139, 0, 0, 0.9)) !important;
    border-radius: 7px !important;
    border: 2px solid rgba(40, 40, 40, 0.6) !important;
    box-shadow: 
        inset 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(220, 20, 60, 0.3) !important;
}

.medieval-select::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(180, 20, 20, 1), 
        rgba(255, 50, 80, 1),
        rgba(255, 100, 120, 0.9),
        rgba(255, 50, 80, 1),
        rgba(180, 20, 20, 1)) !important;
    box-shadow: 
        inset 0 0 8px rgba(255, 255, 255, 0.2),
        0 0 15px rgba(220, 20, 60, 0.5) !important;
}

/* Efeito de corner decorativo */
.medieval-select::-webkit-scrollbar-corner {
    background: linear-gradient(45deg, 
        rgba(20, 20, 20, 0.9), 
        rgba(139, 0, 0, 0.3)) !important;
}

/* Estilos para ícones PNG nas opções do select */
/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #8B0000;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-select:hover .select-trigger {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border-color: #a00000;
}

.custom-select.open .select-trigger {
    border-color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #8B0000;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.custom-select.open .select-options {
    display: block;
}

.select-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.select-option:hover {
    background: linear-gradient(135deg, #3d3d3d 0%, #4d4d4d 100%);
    color: #ff4444;
}

.select-option.selected {
    background: linear-gradient(135deg, #8B0000 0%, #a00000 100%);
    color: #ffffff;
}

.select-option-icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-option-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.select-option-text {
    flex: 1;
    font-weight: 500;
}

.select-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-text-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-text-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.select-arrow {
    transition: transform 0.3s ease;
    color: #8B0000;
    font-size: 14px;
}

/* Ícone no select principal quando uma opção é selecionada */
.select-current-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    border-radius: 2px !important;
    box-shadow: 0 0 4px rgba(220, 20, 60, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Ajuste do padding do select quando há ícone */
.medieval-select:has(.select-current-icon) {
    padding-left: 40px !important;
}

/* Fallback para navegadores que não suportam :has() */
.medieval-select.has-icon {
    padding-left: 40px !important;
}

/* Estilos específicos para diferentes materiais */
.medieval-select option[data-icon*="nucleoenergia.png"] {
    background-image: url('images/nucleoenergia.png') !important;
}

.medieval-select option[data-icon*="lingoteferro.png"] {
    background-image: url('images/lingoteferro.png') !important;
}

.medieval-select option[data-icon*="lingotecobre.png"] {
    background-image: url('images/lingotecobre.png') !important;
}

.medieval-select option[data-icon*="ligaderadio.png"] {
    background-image: url('images/ligaderadio.png') !important;
}

.medieval-select option[data-icon*="bateriacarregada.png"] {
    background-image: url('images/bateriacarregada.png') !important;
}

.medieval-select option[data-icon*="vidro.png"] {
    background-image: url('images/vidro.png') !important;
}

.medieval-select option[data-icon*="eletrecidade.png"] {
    background-image: url('images/eletrecidade.png') !important;
}

.medieval-select option[data-icon*="recipientelodo.png"] {
    background-image: url('images/recipientelodo.png') !important;
}

.medieval-select option[data-icon*="primordialessencia.png"] {
    background-image: url('images/primordialessencia.png') !important;
}

.medieval-select option[data-icon*="fiodecobre.png"] {
    background-image: url('images/fiodecobre.png') !important;
}

/* Efeito hover nos ícones das opções */
.medieval-select option[data-icon]:not([data-icon=""]):hover {
    background-size: 18px 18px !important;
    background-position: 10px center !important;
    padding-left: 38px !important;
}

/* Animação do ícone selecionado */
.select-current-icon:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.5) !important;
}

/* Melhorias de Performance e Animações */
.medieval-select,
.material-item,
.node-content,
.summary-card {
    will-change: transform;
}

/* Efeitos de Hover Melhorados */
.summary-card:hover .card-icon {
    animation: cardIconSpin 1s ease-in-out;
}

@keyframes cardIconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.gothic-button:hover .btn-content i {
    animation: buttonIconBounce 0.6s ease;
}

@keyframes buttonIconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(-1px); }
}

/* Melhorias na Árvore de Produção */
.tree-node:nth-child(even) {
    animation-delay: 0.1s;
}

.tree-node:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Responsive Design Melhorado */
@media (max-width: 1200px) {
    .main-content,
    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .summary-cards,
    .responsive-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .basic-materials-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .responsive-panel {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .header {
        padding: 2rem 1rem;
    }
    
    .header-navigation {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .header-ornaments {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ornament-left,
    .ornament-right {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-skull {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
    }
    
    .calculator-panel,
    .results-panel,
    .responsive-panel {
        padding: 1.5rem;
    }
    
    .summary-cards,
    .responsive-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .basic-materials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .responsive-empty {
        padding: 2rem 1rem;
    }
    
    .material-item {
        padding: 1rem;
    }
    
    .material-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .node-content {
        padding: 1.5rem;
    }
    
    .node-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        max-width: none;
        padding: 0.8rem 1rem;
    }
    
    .select-wrapper {
        margin-bottom: 0.5rem;
    }
    
    .medieval-select {
        padding: 1rem 3.5rem 1rem 3rem;
        font-size: 1rem;
    }
    
    .select-icon {
        left: 1rem;
        font-size: 1.1rem;
    }
    
    .select-arrow {
        right: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0.8rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .header-navigation {
        gap: 0.6rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        min-height: 44px; /* Touch target size */
    }
    
    .header-ornaments {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ornament-left,
    .ornament-right {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-skull {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .calculator-panel,
    .results-panel,
    .responsive-panel {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .responsive-empty {
        padding: 1.5rem 1rem;
    }
    
    /* Touch-friendly buttons */
    .gothic-button {
        min-height: 48px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Improved form inputs for mobile */
    .medieval-input {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.8rem 1rem;
    }
    
    /* Better spacing for form groups */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-tree {
        padding: 20px;
        min-height: 300px;
    }
    
    .skill-tree-container {
        gap: 20px;
    }
    
    .skill-level {
        gap: 20px;
    }
    
    .skill-node {
        width: 60px;
        height: 60px;
    }
    
    .skill-node.final-product {
        width: 80px;
        height: 80px;
    }
    
    .skill-icon {
        font-size: 1.5em;
    }
    
    .skill-quantity {
        font-size: 0.6em;
        padding: 1px 4px;
    }
    
    .skill-expansion {
        margin-top: 8px;
    }
    
    .expansion-header {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .expansion-header h4 {
        font-size: 14px;
    }
    
    .expansion-quantity {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .expansion-body {
        padding: 12px;
    }
    
    .expansion-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .expansion-info-item {
        padding: 6px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .info-icon {
        font-size: 14px;
    }
    
    .info-text {
        font-size: 11px;
    }
    
    .necessita-header {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .necessita-item {
        padding: 6px 8px;
        gap: 8px;
    }
    
    .ingredient-icon {
        font-size: 14px;
    }
    
    .ingredient-name {
        font-size: 12px;
    }
    
    .ingredient-qty {
        font-size: 12px;
    }
    
    .skill-node.expanded {
        transform: scale(1.02);
    }
    
    .level-connector {
        height: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .title-skull {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .calculator-panel,
    .results-panel {
        padding: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 50%;
    border-top-color: var(--vrising-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Styles for Accessibility */
.gothic-button:focus,
.medieval-select:focus,
.medieval-input:focus,
.export-btn:focus {
    outline: 2px solid var(--vrising-red);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --vrising-red: #ff0000;
        --vrising-silver: #ffffff;
    }
    
    .calculator-panel,
    .results-panel {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-particles,
    .blood-mist,
    .loading-skull {
        animation: none !important;
    }
    
    .responsive-results {
        animation: none !important;
    }
}

/* Reduced Data Mode - disable heavy animations */
@media (prefers-reduced-data: reduce) {
    .floating-particles,
    .blood-mist,
    .shadow-vignette {
        display: none;
    }
    
    .background-effects {
        background: var(--vrising-black);
    }
}

/* Print styles */
@media print {
    .background-effects,
    .loading-overlay,
    .nav-link,
    .gothic-button {
        display: none !important;
    }
    
    .main-container {
        max-width: none;
        padding: 0;
    }
    
    .header {
        background: none;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Machine Items Section Styles */
.machine-items-section {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.9) 0%,
        rgba(42, 42, 42, 0.8) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
    border: 2px solid var(--vrising-red);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 0 20px rgba(220, 20, 60, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.machine-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.machine-type-card {
    background: linear-gradient(
        135deg,
        rgba(42, 42, 42, 0.9) 0%,
        rgba(58, 58, 58, 0.8) 50%,
        rgba(42, 42, 42, 0.9) 100%
    );
    border: 1px solid var(--vrising-red-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.machine-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(220, 20, 60, 0.2);
    border-color: var(--vrising-red);
}

.machine-type-header {
    background: linear-gradient(
        90deg,
        var(--vrising-red-dark) 0%,
        var(--vrising-red) 50%,
        var(--vrising-red-dark) 100%
    );
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

.machine-type-header i {
    font-size: 1.5rem;
    color: var(--vrising-silver);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.machine-type-header h4 {
    font-family: var(--font-medieval);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--vrising-silver);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    flex: 1;
    margin: 0;
}

.item-count {
    background: rgba(0, 0, 0, 0.4);
    color: var(--vrising-silver);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.machine-items-list {
    padding: 1rem;
    max-height: 100%;
    overflow-y: auto;
}



.machine-item {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.machine-item:hover {
    background: rgba(42, 42, 42, 0.8);
    border-color: var(--vrising-red);
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.2);
}

.machine-item:last-child {
    margin-bottom: 0;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-icon-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid rgba(220, 20, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.item-icon-container:hover {
    border-color: var(--vrising-red);
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
    transform: scale(1.05);
}

.item-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.item-name {
    font-family: var(--font-medieval);
    font-size: 1rem;
    font-weight: 600;
    color: var(--vrising-silver);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--vrising-silver);
    opacity: 0.9;
}

.item-quantity,
.item-batches,
.item-time {
    background: rgba(220, 20, 60, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    font-family: var(--font-tech);
    font-weight: 500;
}

/* Scrollbar Styles for Machine Items List */
.machine-items-list::-webkit-scrollbar {
    width: 8px;
}

.machine-items-list::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.machine-items-list::-webkit-scrollbar-thumb {
    background: var(--vrising-red-dark);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.machine-items-list::-webkit-scrollbar-thumb:hover {
    background: var(--vrising-red);
}

/* Responsive Design for Machine Items */
@media (max-width: 768px) {
    .machine-types-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .machine-type-header {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .machine-type-header h4 {
        font-size: 1rem;
    }
    
    .item-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .machine-items-list {
        max-height: 250px;
    }
    

}

@media (max-width: 480px) {
    .machine-items-section {
        padding: 1rem;
    }
    
    .machine-types-grid {
        gap: 0.75rem;
    }
    
    .machine-type-header {
        padding: 0.5rem;
    }
    
    .machine-item {
        padding: 0.5rem;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-details {
        font-size: 0.8rem;
    }
    

}

/* Machine Items Section Styles */
.machine-items-section {
    margin-bottom: 30px;
}

.machine-type-section {
    margin-bottom: 25px;
}

.machine-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(75, 0, 0, 0.3));
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.machine-type-header i {
    color: #DC143C;
    font-size: 18px;
}

.machine-type-header h4 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.machine-count-badge {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-batches-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

.item-batches-compact i {
    color: #DC143C;
    font-size: 10px;
}

.machine-count-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #bbb;
    margin-top: 4px;
}

.machine-count-compact i {
    color: #DC143C;
    font-size: 10px;
}

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.section-header-with-button .section-title {
    margin-bottom: 0;
    flex: 1;
}

.section-header-with-button .machine-modal-trigger {
    margin-top: 0;
    flex-shrink: 0;
}

.section-header-with-button .gothic-button {
    padding: 8px 16px;
    font-size: 14px;
    min-width: auto;
}

/* Mensagens informativas */
.error-message {
    color: var(--vrising-red);
    text-align: center;
    padding: 2rem;
    font-family: var(--font-medieval);
}

.info-message {
    color: var(--vrising-silver);
    text-align: center;
    padding: 2rem;
    font-family: var(--font-medieval);
    opacity: 0.8;
    font-style: italic;
}

/* Tab Navigation Styles */
/* Estilos das abas removidos para restaurar configuração anterior */

/* Optimizer Description */
.optimizer-description {
    background: linear-gradient(135deg, #2A4A2A 0%, #1A3A1A 100%);
    border: 1px solid #4A6A4A;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    color: #C4D4C4;
}

.optimizer-description p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.optimizer-description i {
    color: #6A9A6A;
    margin-right: 8px;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    background: rgba(139, 115, 85, 0.1);
    border: 1px solid rgba(139, 115, 85, 0.3);
}

.radio-option:hover {
    background: rgba(139, 115, 85, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #8B7355;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #C4B896;
    background: #8B7355;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #F4F1E8;
    border-radius: 50%;
}

.radio-option:hover .radio-custom {
    border-color: #C4B896;
    box-shadow: 0 0 8px rgba(196, 184, 150, 0.3);
}

/* Optimizer Results Styles */
.optimizer-results {
    margin-top: 2rem;
}

.optimizer-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.optimizer-header h3 {
    color: #F4F1E8;
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    margin: 0;
}

.optimizer-header i {
    color: #8B7355;
    margin-right: 8px;
}

.optimizer-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.optimizer-recommendations {
    margin-top: 2rem;
}

.optimizer-recommendations h4 {
    color: #F4F1E8;
    font-family: 'Cinzel', serif;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.optimizer-recommendations i {
    color: #8B7355;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.1), rgba(107, 91, 69, 0.1));
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.2), rgba(107, 91, 69, 0.2));
    border-color: rgba(139, 115, 85, 0.5);
    transform: translateY(-2px);
}

.rec-icon {
    flex-shrink: 0;
}

.rec-icon img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid rgba(139, 115, 85, 0.3);
}

.rec-details {
    flex: 1;
}

.rec-name {
    font-weight: 600;
    color: #F4F1E8;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.rec-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rec-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9em;
    color: #C4B896;
    background: rgba(139, 115, 85, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.rec-stats i {
    font-size: 0.8em;
    color: #8B7355;
}

.rec-calculate-btn {
    background: linear-gradient(135deg, #8B7355 0%, #6B5B45 100%);
    border: 1px solid #A0956B;
    color: #F4F1E8;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.rec-calculate-btn:hover {
    background: linear-gradient(135deg, #A0956B 0%, #8B7355 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rec-calculate-btn i {
    font-size: 0.9em;
}

/* Responsive Design for Optimizer */
@media (max-width: 768px) {
    .optimizer-summary {
        grid-template-columns: 1fr;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .rec-stats {
        justify-content: center;
    }
    
    .rec-calculate-btn {
        align-self: stretch;
        justify-content: center;
    }
    
    .recipes-grid {
        gap: 1rem;
    }
    
    .recipe-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .material-info {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .efficiency-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .plan-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .optimizer-results {
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .rec-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rec-stats span {
        justify-content: center;
    }
    
    .recipes-grid {
        gap: 0.75rem;
    }
    
    .recipe-header {
        padding: 1rem 0.75rem;
    }
    
    .rank-badge {
        min-width: 45px;
        min-height: 45px;
        font-size: 1.1rem;
        padding: 0.6rem 0.8rem;
    }
    
    .efficiency-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .plan-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Estilos do otimizador removidos para restaurar configuração anterior */
    
    .optimizer-results {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
}

/* Estilos para detalhes expandidos da receita */
.recipe-details-expanded {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(
        135deg,
        rgba(220, 20, 60, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

.recipe-info-section,
.ingredients-section,
.recipe-efficiency-section {
    margin-bottom: 1rem;
}

.recipe-info-section:last-child,
.ingredients-section:last-child,
.recipe-efficiency-section:last-child {
    margin-bottom: 0;
}

.recipe-details-expanded h4 {
    color: var(--vrising-red);
    font-family: var(--font-tech);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-stats,
.efficiency-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.recipe-stat,
.efficiency-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 140px;
    flex: 1;
}

.recipe-stat:hover,
.efficiency-item:hover {
    border-color: rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.1);
}

.recipe-stat .label,
.efficiency-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.recipe-stat .value,
.efficiency-item .value {
    color: var(--vrising-red-light);
    font-weight: 600;
    font-family: var(--font-tech);
}

.ingredients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 90px;
}

.recipe-details-expanded .ingredient-item img {
    width: 18px !important;
    height: 18px !important;
}

.recipe-details-expanded .recipe-stat,
.recipe-details-expanded .efficiency-item {
    font-size: 0.85rem;
}

.recipe-details-expanded h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

.ingredient-item:hover {
    border-color: rgba(220, 20, 60, 0.5);
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-2px);
}

.ingredient-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ingredient-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.ingredient-quantity {
    color: var(--vrising-red-light);
    font-weight: 600;
    font-family: var(--font-tech);
    font-size: 0.8rem;
}

/* Responsividade para detalhes da receita */
@media (max-width: 768px) {
    .recipe-stats,
    .efficiency-breakdown {
        grid-template-columns: 1fr;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .recipe-details-expanded {
        padding: 1rem;
        margin-top: 1rem;
    }
}

/* Todos os estilos dos recipe-cards removidos para restaurar configuração anterior */

/* Estilos de hover dos recipe-cards removidos */

.efficiency-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat {
    background: rgba(220, 20, 60, 0.15);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    text-align: center;
}

.stat .label {
    display: block;
    font-family: var(--font-tech);
    color: var(--vrising-red-light);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat .value {
    display: block;
    font-family: var(--font-tech);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}

.production-plan {
    background: rgba(220, 20, 60, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

.production-plan h4 {
    font-family: var(--font-medieval);
    color: #9370DB;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.plan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.plan-stat {
    text-align: center;
}

.plan-stat .label {
    display: block;
    font-family: var(--font-tech);
    color: #9370DB;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-stat .value {
    display: block;
    font-family: var(--font-tech);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.calculate-detailed-btn {
    width: 100%;
    background: linear-gradient(
        135deg,
        #dc143c 0%,
        #663399 100%
    );
    border: 2px solid #dc143c;
    color: white;
    font-family: var(--font-medieval);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calculate-detailed-btn:hover {
    background: linear-gradient(
        135deg,
        #dc143c 0%,
        #dc143c 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.optimizer-tips {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(75, 0, 130, 0.3);
}

.optimizer-tips h3 {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.optimizer-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.optimizer-tips li {
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.optimizer-tips li::before {
    content: '🔥';
    position: absolute;
    left: 0;
    top: 0;
}

.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(139, 0, 0, 0.1);
    border: 2px dashed rgba(220, 20, 60, 0.4);
    border-radius: 12px;
}

.no-results h3 {
    font-family: var(--font-medieval);
    color: var(--vrising-silver);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.no-results p {
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* Responsividade para Otimizador */
@media (max-width: 1200px) {
    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .efficiency-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .plan-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .recipe-header {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    /* Estilos dos recipe-cards removidos */
    
    .optimizer-results {
        padding: 1rem;
        margin: 0 -1rem;
    }
    
    .results-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .optimizer-results {
        padding: 0.5rem;
        margin: 0 -0.5rem;
    }
    
    /* Estilos dos recipe-cards removidos */
    
    .results-header h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .efficiency-stats .stat {
        padding: 0.5rem;
    }
    
    .plan-stats .plan-stat {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .calculate-detailed-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .machine-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* Estilos para Sistema de Abas */
/* Estilos das abas gerenciados pelo TabManager em tabs.js */

.optimizer-results-container {
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.optimizer-description {
    background: rgba(75, 0, 130, 0.1);
    border: 1px solid rgba(75, 0, 130, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
}

.optimizer-description i {
    color: var(--vrising-red);
    margin-right: 0.5rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(75, 0, 130, 0.1);
    border: 1px solid rgba(75, 0, 130, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-tech);
    color: var(--vrising-silver);
}

.radio-option:hover {
    background: rgba(75, 0, 130, 0.2);
    border-color: rgba(220, 20, 60, 0.5);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(75, 0, 130, 0.6);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #9370DB;
    background: rgba(220, 20, 60, 0.3);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #dc143c;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
}

.radio-option:hover .radio-custom {
    border-color: #9370DB;
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.3);
}

/* Estilos para receitas incompletas removidos */

/* Estilos para estatísticas com status */
.plan-stat.warning {
    color: #856404;
    background: rgba(255, 193, 7, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-weight: 600;
}

.plan-stat.success {
    color: #155724;
    background: rgba(40, 167, 69, 0.15);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    font-weight: 600;
}

/* Mensagem de aviso */
.warning-message {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    color: #856404;
    font-size: 14px;
    text-align: center;
    font-family: var(--font-tech);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

/* Tag da máquina */
.machine-tag {
    background: rgba(220, 20, 60, 0.2);
    color: #dc143c;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    display: inline-block;
    border: 1px solid rgba(220, 20, 60, 0.3);
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NFT RECIPE CARDS STYLES ===== */

/* Grid container for NFT cards */
.nft-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* NFT Recipe Card */
.nft-recipe-card {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 20px;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

/* Card glow effect */
.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, var(--vrising-red), transparent);
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nft-recipe-card:hover .card-glow {
    opacity: 0.6;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card border */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #333, #666, #333);
    z-index: -1;
}

/* Rarity-based styling */
.nft-recipe-card.legendary {
    border: 2px solid #ff6b35;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.nft-recipe-card.legendary .card-glow {
    background: linear-gradient(45deg, transparent, #ff6b35, #ffd700, #ff6b35, transparent);
}

.nft-recipe-card.epic {
    border: 2px solid #9c27b0;
    box-shadow: 0 0 25px rgba(156, 39, 176, 0.3);
}

.nft-recipe-card.epic .card-glow {
    background: linear-gradient(45deg, transparent, #9c27b0, transparent);
}

.nft-recipe-card.rare {
    border: 2px solid #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.nft-recipe-card.rare .card-glow {
    background: linear-gradient(45deg, transparent, #2196f3, transparent);
}

.nft-recipe-card.common {
    border: 2px solid #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.nft-recipe-card.common .card-glow {
    background: linear-gradient(45deg, transparent, #4caf50, transparent);
}

/* Card hover effects */
.nft-recipe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.rank-crown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-weight: bold;
}

.rank-crown i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px #ffd700);
}

.rank-number {
    font-family: var(--font-tech);
    font-size: 1.1rem;
    text-shadow: 0 0 10px #ffd700;
}

.rarity-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rarity-badge.legendary {
    background: linear-gradient(45deg, #ff6b35, #ffd700);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.rarity-badge.epic {
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    color: #fff;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.rarity-badge.rare {
    background: linear-gradient(45deg, #2196f3, #00bcd4);
    color: #fff;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.5);
}

.rarity-badge.common {
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    color: #fff;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

/* Card Artwork */
.card-artwork {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.item-showcase {
    position: relative;
    display: inline-block;
    padding: 1rem;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.item-showcase img {
    filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.6));
    transition: all 0.3s ease;
}

.nft-recipe-card:hover .item-showcase img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(220, 20, 60, 0.8));
}

.holographic-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: holographicShine 3s ease-in-out infinite;
}

.nft-recipe-card:hover .holographic-effect {
    opacity: 1;
}

@keyframes holographicShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.item-name h3 {
    font-family: var(--font-medieval);
    font-size: 1.3rem;
    color: var(--vrising-red-light);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.machine-badge {
    background: rgba(220, 20, 60, 0.2);
    color: #a4757e;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: var(--font-tech);
    border: 1px solid rgba(220, 20, 60, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Card Stats */
.card-stats {
    margin-bottom: 1.5rem;
}

.primary-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(220, 20, 60, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    margin-bottom: 1rem;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--vrising-red);
    filter: drop-shadow(0 0 5px var(--vrising-red));
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--vrising-silver);
    font-family: var(--font-tech);
    margin-bottom: 0.2rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--vrising-red-light);
    text-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
}

.secondary-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--vrising-red);
}

.stat-row .label {
    font-size: 0.9rem;
    color: var(--vrising-silver);
    font-family: var(--font-tech);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-row .label i {
    color: var(--vrising-red);
    font-size: 0.8rem;
}

.stat-row .value {
    font-weight: bold;
    color: var(--vrising-red-light);
    font-family: var(--font-tech);
}

/* Card Ingredients */
.card-ingredients {
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-ingredients h4 {
    font-family: var(--font-medieval);
    color: var(--vrising-red-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ingredients-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 0.5rem;
    justify-items: center;
}

.ingredient-item {
    position: relative;
    width: 40px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredient-item img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 3px rgba(220, 20, 60, 0.3));
    object-fit: contain;
}

.ingredient-item .quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--vrising-red);
    color: white;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.5);
}

.ingredient-item span:not(.quantity) {
    display: none;
}

/* Tamanho específico para ingredientes em cards epic */
.nft-recipe-card.epic .ingredient-item {
    width: 30px;
    height: 60px;
}

.nft-recipe-card.epic .ingredient-item img {
    width: 24px;
    height: 24px;
}

.no-ingredients {
    color: var(--vrising-silver);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Card Footer */
.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.production-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--vrising-silver);
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.production-time i {
    color: var(--vrising-red);
}

/* NFT Action Button */
.nft-action-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--vrising-red-dark), var(--vrising-red));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nft-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.4);
    background: linear-gradient(45deg, var(--vrising-red), var(--vrising-red-light));
}

.btn-shine {
    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;
}

.nft-action-btn:hover .btn-shine {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nft-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nft-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .nft-recipe-card {
        padding: 1rem;
        min-height: 450px;
    }
    
    .item-name h3 {
        font-size: 1.1rem;
    }
    
    .primary-stat {
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nft-recipe-card {
        padding: 0.8rem;
        min-height: 400px;
    }
    
    .card-header {
        margin-bottom: 0.8rem;
    }
    
    .rank-crown {
        gap: 0.3rem;
    }
    
    .rank-crown i {
        font-size: 1rem;
    }
    
    .rarity-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .item-showcase {
        padding: 0.8rem;
    }
    
    .primary-stat {
        gap: 0.8rem;
        padding: 0.6rem;
    }
    
    .stat-icon {
        font-size: 1.2rem;
    }
    
    .ingredients-list {
        max-height: 100px;
    }
    
    .nft-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Page Header Styles */
.page-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(45, 20, 20, 0.1) 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header p {
    color: #cccccc;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Timeline Styles */
.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-form-container {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(45, 20, 20, 0.1) 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.post-form-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.post-form-header:hover {
    background: rgba(139, 0, 0, 0.1);
}

.post-form-header h3 {
    color: #ff6b6b;
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.expand-icon {
    color: #ff6b6b;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.post-form {
    padding: 25px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #cccccc;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(26, 10, 10, 0.8);
    border: 2px solid rgba(139, 0, 0, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    background: rgba(26, 10, 10, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b0000, #a00000);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00000, #c00000);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}

.post-card {
    background: linear-gradient(135deg, rgba(26, 10, 10, 0.9) 0%, rgba(45, 20, 20, 0.8) 100%);
    border: 1px solid rgba(139, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
}

.post-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b0000, #a00000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.post-user-info h4 {
    color: #ff6b6b;
    margin: 0;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.post-user-info .server {
    color: #cccccc;
    font-size: 0.9rem;
    opacity: 0.8;
}

.post-time {
    color: #999999;
    font-size: 0.85rem;
    margin-left: auto;
}

.post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.post-description {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.post-type {
    display: inline-block;
    background: linear-gradient(135deg, #8b0000, #a00000);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(139, 0, 0, 0.2);
}

.like-btn {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.like-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.like-btn.liked {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.like-btn.liked i {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Responsive for Timeline */
@media (max-width: 768px) {
    .timeline-container {
        padding: 10px;
    }
    
    .post-form,
    .post-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-time {
        margin-left: 0;
    }
}