/* Scenarijų puslapio stiliai */
/* Headeris naudoja stilius iš styles.css */

/* Navbar stiliai scenarijų puslapiui */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.nav-logo:hover {
    color: #764ba2;
    transform: scale(1.05);
}

.nav-logo i {
    margin-right: 12px;
    font-size: 1.9rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover i {
    transform: rotate(5deg);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
}

/* Account Dropdown */
.account-dropdown {
    position: relative;
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-btn:hover {
    background: #667eea;
    color: white;
}

.account-btn i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.account-dropdown.active .account-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.account-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.dropdown-item:hover {
    background: #f5f5f5;
    color: #667eea;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #667eea;
}

.modal-content.modal-large {
    max-width: 600px;
}

.account-info-section {
    margin-bottom: 25px;
}

.account-info-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
    text-align: right;
}

.btn-login {
    padding: 11px 24px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body {
    padding-top: 75px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f0f2ff;
    color: #667eea;
    border-left-color: #667eea;
}

.mobile-menu-auth,
.mobile-menu-account {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #e1e5e9;
}

.btn-login-mobile,
.btn-register-mobile {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.btn-login-mobile {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-login-mobile:hover {
    background: #667eea;
    color: white;
}

.btn-account-mobile {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-account-mobile:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-logout-mobile {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-logout-mobile:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Mobile Navbar Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.4rem;
        margin-right: 8px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Rodyti hamburger mobile */
    .hamburger {
        display: flex !important;
    }
    
    .nav-auth {
        display: none;
    }
    
    .account-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .account-btn span {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    .btn-login {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .mobile-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }
    
    .navbar {
        height: 55px;
    }
    
    .nav-container {
        padding: 0 12px;
        height: 55px;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-logo i {
        font-size: 1.2rem;
        margin-right: 6px;
    }
    
    .hamburger {
        padding: 6px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .account-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 160px;
    }
    
    .mobile-menu {
        top: 55px;
        max-height: calc(100vh - 55px);
        padding: 15px;
    }
    
    .mobile-nav-link {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* Container ir Header */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

header {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.15rem;
    color: #666;
    font-weight: 400;
}

.header-subtitle {
    font-size: 1.15rem;
    color: #666;
    font-weight: 700; /* Bold */
    margin-top: 10px;
    margin-bottom: 0;
}

/* Mobile - padidinti ir padaryti header tekstą kaip header su efektais */
@media (max-width: 768px) {
    .header-subtitle {
        font-size: 1.5rem; /* Padidinti kaip header */
        font-weight: 700 !important; /* Bold */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        margin-top: 15px;
        position: relative;
        display: inline-block;
        animation: fadeInUp 0.6s ease-out;
    }
    
    .header-subtitle::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
        animation: slideIn 0.8s ease-out;
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideIn {
        from {
            width: 0;
        }
        to {
            width: 100%;
        }
    }
}

/* Filtravimo sekcija */
.filters-section {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 35px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.filters-row {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 18px;
    color: #667eea;
    z-index: 1;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filter-group select:hover {
    border-color: #667eea;
    background: white;
}

/* Scenarijų sekcija */
.scenarios-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 35px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.scenarios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f2f5;
}

.scenarios-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scenarios-header h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.scenarios-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.scenarios-delete-section {
    margin-top: 10px;
    display: none;
    justify-content: flex-end;
    width: 100%;
}

.scenarios-delete-section.show {
    display: flex;
}

.btn-delete-text {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.btn-delete-text:hover {
    color: #c82333;
}

.btn-delete-text i {
    font-size: 0.9rem;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
}

.scenario-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e8ecf0;
    border-radius: 18px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2ff 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.scenario-card:hover::before {
    transform: scaleX(1);
}

.scenario-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #e8f0ff 0%, #f0f2ff 100%);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 8px 25px rgba(102, 126, 234, 0.2);
}

.scenario-card.selected::before {
    transform: scaleX(1);
}

.scenario-header-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.scenario-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #667eea;
    z-index: 10;
    margin: 0;
}

.scenario-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    width: 100%;
}

.scenario-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    width: 100%;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.scenario-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.scenario-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 0;
    border-top: 1px solid #e8ecf0;
    border-bottom: 1px solid #e8ecf0;
    align-items: start;
}

.scenario-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.scenario-detail i {
    color: #667eea;
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-text {
    background: white;
    padding: 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #555;
    min-height: 70px;
    max-height: 70px;
    overflow: hidden;
    position: relative;
    line-height: 1.5;
    border: 1px solid #e8ecf0;
    flex-shrink: 0;
}

.scenario-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    z-index: 1;
}

.read-more-btn {
    display: inline;
    background: none;
    border: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    font-family: inherit;
}

.scenario-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-small {
    padding: 9px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-small:active {
    transform: translateY(0);
}

.btn-view {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-view:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
}

.btn-edit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #c0392b 100%);
}

/* Mygtukų stiliai scenarios-actions */
.scenarios-actions .btn-primary,
.scenarios-actions .btn-secondary,
.scenarios-actions .btn-danger {
    padding: 12px 24px;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.scenarios-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.scenarios-actions .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3d92 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.scenarios-actions .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scenarios-actions .btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.scenarios-actions .btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.scenarios-actions .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

.scenarios-actions .btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #c0392b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Palyginimo sekcija */
.comparison-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 35px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f2f5;
}

.comparison-header h2 {
    color: #333;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-header h2::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.btn-close {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn-close:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.comparison-content {
    margin-top: 20px;
}

.comparison-chart {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.score-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.score-excellent {
    background: #4CAF50;
    color: white;
}

.score-good {
    background: #8BC34A;
    color: white;
}

.score-average {
    background: #FFC107;
    color: #333;
}

.score-poor {
    background: #FF5722;
    color: white;
}

.comparison-insights {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.comparison-insights h3 {
    color: #333;
    margin-bottom: 15px;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.insight-icon {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 2px;
}

.insight-text {
    flex: 1;
}

.insight-text strong {
    color: #333;
}

/* Tuščios būsenos stiliai */
.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #e1e5e9;
    margin: 20px 0;
}

.empty-state i {
    font-size: 5rem;
    color: #d0d5db;
    margin-bottom: 25px;
    opacity: 0.6;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.empty-state h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: #666;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn-primary {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.empty-state .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Modalai */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive dizainas */
@media (max-width: 1024px) {
    .scenarios-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .container {
        padding: 20px 15px;
        max-width: 100%;
    }
    
    header {
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    header p {
        font-size: 0.95rem;
    }
    
    .header-subtitle {
        font-size: 1.4rem; /* Padidinti kaip header mobile */
        font-weight: 700 !important; /* Bold */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        margin-top: 15px;
        position: relative;
        display: inline-block;
    }
    
    .header-subtitle::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filters-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .scenarios-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .scenarios-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .scenarios-header h2 {
        font-size: 1.4rem;
        width: 100%;
    }
    
    .scenarios-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
    }
    
    .scenarios-delete-section {
        margin-top: 10px;
        display: flex !important;
        justify-content: flex-end !important;
        width: 100%;
    }
    
    .scenarios-actions .btn-primary,
    .scenarios-actions .btn-secondary,
    .scenarios-actions .btn-danger {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .scenario-card {
        padding: 18px;
        border-radius: 12px;
    }
    
    .scenario-header-top {
        flex-wrap: wrap;
        gap: 10px;
        position: relative;
    }
    
    .scenario-title {
        font-size: 1.1rem;
        flex: 1;
        min-width: 0;
        padding-right: 10px;
    }
    
    /* Scenario-score neuždengia scenario-title mobile */
    .scenario-score {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }
    
    .scenario-score.score-average {
        z-index: 1;
        padding: 6px 12px; /* Pamažinti padding */
        font-size: 0.9rem; /* Pamažinti font-size */
    }
    
    /* Pamažinti scenario-score (poor, good) ir padaryti vienodo dydžio kaip average */
    .scenario-score.score-poor,
    .scenario-score.score-good {
        padding: 6px 12px; /* Vienodas padding kaip average */
        font-size: 0.9rem; /* Vienodas font-size kaip average */
    }
    
    .scenario-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .scenario-detail {
        font-size: 0.9rem;
    }
    
    .scenario-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .scenario-actions {
        flex-direction: row;
        justify-content: stretch;
        gap: 8px;
        margin-top: 15px;
    }
    
    .scenario-actions .btn-small {
        flex: 1;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .comparison-section {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .comparison-header {
        flex-direction: row; /* Mobile - mygtukas dešiniau teksto */
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        text-align: left; /* Tekstas kairėje */
        padding-bottom: 15px;
    }
    
    .comparison-header h2 {
        font-size: 1.4rem;
        margin: 0;
        flex: 1;
    }
    
    .comparison-header .btn-close {
        flex-shrink: 0;
        margin: 0;
    }
    
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
    
    .comparison-chart {
        padding: 15px;
    }
    
    .comparison-insights {
        padding: 15px;
    }
    
    .insight-item {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem; /* Padidinti kaip header mobile 480px */
        font-weight: 700 !important; /* Bold */
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        margin-top: 12px;
        position: relative;
        display: inline-block;
    }
    
    .header-subtitle::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 2px;
    }
    
    .filters-section,
    .scenarios-section,
    .comparison-section {
        padding: 15px 12px;
        border-radius: 12px;
    }
    
    .filters-row {
        gap: 10px;
    }
    
    .scenarios-header {
        gap: 12px;
    }
    
    .scenarios-header h2 {
        font-size: 1.2rem;
    }
    
    .scenarios-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .scenarios-actions .btn-primary,
    .scenarios-actions .btn-secondary,
    .scenarios-actions .btn-danger {
        width: 100%;
        flex: none;
        padding: 14px 16px;
    }
    
    .scenarios-delete-section {
        flex-direction: column;
    }
    
    .scenario-card {
        padding: 15px;
    }
    
    .scenario-header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scenario-score {
        align-self: flex-end;
    }
    
    /* Pamažinti scenario-score (poor, good) ir padaryti vienodo dydžio kaip average */
    .scenario-score.score-poor,
    .scenario-score.score-good {
        padding: 6px 12px; /* Vienodas padding kaip average */
        font-size: 0.9rem; /* Vienodas font-size kaip average */
    }
    
    .scenario-title {
        font-size: 1rem;
    }
    
    .scenario-detail {
        font-size: 0.85rem;
    }
    
    .scenario-text {
        font-size: 0.9rem;
    }
    
    .scenario-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .scenario-actions .btn-small {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state i {
        font-size: 3.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 0.95rem;
    }
    
    .comparison-header h2 {
        font-size: 1.2rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 6px;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px 12px;
    }
    
    /* Pagination mobile stiliai */
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
        margin: 30px 0;
    }
    
    /* Wrapper navigacijos mygtukams ir puslapių numeriams - visi vienoje eilutėje */
    .pagination-nav-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        flex-wrap: nowrap;
    }
    
    .pagination-numbers {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 5px;
        flex-shrink: 0;
        display: flex;
    }
    
    .pagination-numbers::-webkit-scrollbar {
        display: none;
    }
    
    .pagination-numbers {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .pagination-number {
        min-width: 32px;
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        padding: 0;
        flex-shrink: 0;
    }
    
    .pagination-btn {
        min-width: 36px;
        width: 36px;
        height: 36px;
        padding: 0;
        flex-shrink: 0;
    }
    
    .pagination-ellipsis {
        min-width: 20px;
        width: 20px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .pagination-info {
        font-size: 0.85rem;
        text-align: center;
        margin-top: 0;
        width: 100%;
    }
}

/* Pagination stiliai */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    padding: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #667eea;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e1e5e9;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #f0f2ff;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 45px;
    color: #adb5bd;
    font-size: 1rem;
    font-weight: 500;
}

.pagination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    width: 100%;
}


