/* Ultra Modern Penal Code Calculator - 2025 Edition */

html {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #0f172a;
}

body {
    background: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
}

body > *:not(footer) {
    flex-shrink: 0;
}

body > footer {
    margin-top: auto;
}

.container {
    width: 65% !important;
}

table {
    border-collapse: collapse;
    width: 65%;
    margin-bottom: 30px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

table {
    color: #e2e8f0 !important;
}

th, td {
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #cbd5e1;
}

table, h1 {
    margin: auto;
}

h1 {
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -1px;
    padding: 40px 0 30px 0;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

.vastag {
    font-weight: bolder;
}

.emeles {
    font-weight: bolder;
    color: #fbbf24;
}

.szurke {
    color: #94a3b8;
}

.viseles {
    color: #fbbf24 !important;
    font-weight: 600;
}

.balra {
    text-align: left !important;
}

.rendeletek {
    text-decoration: none;
    color: #60a5fa;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.rendeletek::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a855f7);
    transition: width 0.3s ease;
}

.rendeletek:hover::before {
    width: 100%;
}

.rendeletek:hover {
    color: #93c5fd;
}

.nevem {
    color: #f43f5e;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nevem:hover {
    color: #fb7185;
}

table th:nth-child(3),
table th:nth-child(4),
table th:nth-child(5),
table th:nth-child(6) {
    width: 6rem;
}

table td:nth-child(3), table th:nth-child(3),
table th:nth-child(4), table td:nth-child(4),
table th:nth-child(5), table td:nth-child(5),
table th:nth-child(6), table td:nth-child(6) {
    text-align: center;
}

.paragrafus {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    color: #e0e7ff !important;
    position: relative;
    overflow: hidden;
}

.paragrafus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.paragrafus:hover::before {
    left: 100%;
}

b {
    color: #fca5a5;
    font-weight: 600;
}

.perc, .szin {
    color: #fde047;
    font-weight: 700;
}

th, td {
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 14px 10px;
    cursor: pointer;
}

th {
    background-color: rgba(99, 102, 241, 0.15);
}

tr:hover {
    background-color: rgba(99, 102, 241, 0.1);
    transform: scale(1.002);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.kijelolt {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.25) 0%, rgba(34, 197, 94, 0.25) 100%) !important;
    color: #f0fdf4;
    font-weight: 600;
    box-shadow: 
        inset 0 0 20px rgba(34, 197, 94, 0.2),
        0 0 20px rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

td {
    text-align: left;
    font-size: 0.95rem;
}

td:first-child {
    text-align: center;
    font-weight: 700;
    color: #a5b4fc;
}

.osszegzes {
    text-align: center;
    font-size: 13px;
}

.osszegzogomb {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.osszegzogomb:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

.osszegzo {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

.irhato {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px dashed #6366f1;
}

footer {
    display: flex;
    justify-content: center;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    width: 60%;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: none;
    color: #cbd5e1;
    text-align: center;
    font-variant: small-caps;
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
}

.birsagolo {
    position: fixed;
    top: 5.54rem;
    left: 2%;
    padding: 1.5rem;
    max-width: 16rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    text-align: center;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

#elsoCellakErteke {
    margin-bottom: 0.3rem;
    color: #f1f5f9;
    font-weight: 600;
}

.trinton {
    text-decoration: none;
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.trinton:hover {
    color: #f1f5f9;
}

.vagolap {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vagolap:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: none !important;
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(16, 185, 129, 0.3);
}

.vagolap:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.5);
}

.torles {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.torles:active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border: none !important;
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(239, 68, 68, 0.3);
}

.torles:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.5);
}

#elsoCellakErteke {
    background: rgba(51, 65, 85, 0.6);
    backdrop-filter: blur(8px);
    margin-bottom: 1.2rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.alja {
    margin-bottom: 10rem;
}

h1 {
    margin: 20px;
}

footer p {
    margin: 0px;
    padding: 0px;
}

footer p:first-child {
    margin-top: 10px;
}

footer p:nth-child(4) {
    margin-bottom: 10px;
}

.ovadek {
    color: white;
    margin: 0px 0 12px 0;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
}

.ovadek > img {
    width: 26px;
    height: 26px;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.5));
}

.csokkento {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.csokkento:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.5);
}

.csokkento:active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    border: none !important;
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.3);
}

.changelog > table th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%) !important;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
    font-weight: 800;
    padding: 24px;
    color: #e0e7ff;
}

.changelog > table {
    background: rgba(30, 41, 59, 0.6) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.changelog > table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.changelog {
    margin-bottom: 30px;
}

.changelog > table tr td:first-child {
    width: 11rem;
    font-weight: 700;
    color: #fde047;
    font-size: 0.9rem;
}

.changelog > table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Kiegészítő animációk és effektek */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

table {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.birsagolo {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    border: 2px solid #1e293b;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
}

/* Responsive design */
@media (max-width: 1200px) {
    .table, tr, td {
        font-size: 10px !important;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .birsagolo {
        max-width: 13rem;
        padding: 1rem;
    }
}

/* Toggle transitions */
.toggleable {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glow effects */
.kijelolt::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Improved focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}