:root {
    --bs-primary: #036DF5;
    --bs-primary-rgb: 3, 109, 245;
    /* Override success color to match primary if requested, or just specific buttons */
    /* If user wants ALL buttons to be this color, we can override btn-success */
}

/* Primary Button Override (already handled by var, but ensuring specificity) */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-secondary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
}

/* Make btn-success look like btn-primary per user request */
.btn-success {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #0257C4 !important; /* Darker shade */
    border-color: #0257C4 !important;
}

/* Styles from main.php */
body {
    /* PAKEITIMAS: Pašalintas padding-top: 56px; */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sub-user-notification-bar {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    background-color: #e9ecef; 
    border-bottom: 1px solid #ced4da;
}
.sub-user-notification-bar .btn-sm {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

table td,
table th {
    white-space: nowrap;
}

#invoice_items_table td,
#invoice_items_table th{
    white-space: nowrap;
}
.modal-content,
.modal-header,
.modal-body,
.modal-footer{
    background-color:#fff!important;
}
.card, .btn, .form-control, .modal-content, .alert, .dropdown-menu {
    box-shadow: none !important;
}
.btn:focus, .form-control:focus, .btn:active {
    box-shadow: none !important;
    outline: none !important;
}

/* Styles from home.php */
/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: #2c3e50;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    margin-top: -1.5rem;
}
/* Pattern overlay */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#036DF5 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #2c3e50;
}
.gradient-text {
    background: linear-gradient(-45deg, #036DF5, #00c6ff, #0072ff, #036DF5);
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-anim 6s ease infinite;
}
@keyframes gradient-anim {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    color: #4a5568;
}
.hero-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(3, 109, 245, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(3, 109, 245, 0.3);
}
.hero-img-container {
    position: relative;
    z-index: 2;
}
.hero-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(184, 0, 255, 0.15));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}
.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}
.divider {
    height: 4px;
    width: 60px;
    background: var(--bs-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Plan Cards */
.plan-section {
    padding: 80px 0;
    background-color: #fff;
    padding-top: 100px;
}
.pricing-card {
    border: 1px solid #edf2f7;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(3, 109, 245, 0.3);
}
.pricing-header {
    padding: 2.5rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
}
.pricing-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}
.pricing-price-container {
    margin-bottom: 1rem;
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bs-primary);
    line-height: 1;
}
.pricing-currency {
    font-size: 1.5rem;
    vertical-align: top;
    margin-right: 2px;
}
.pricing-period {
    font-size: 1rem;
    color: #a0aec0;
    font-weight: 500;
}
.pricing-description {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
    min-height: 42px;
}
.pricing-body {
    padding: 1rem 2rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}
.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #4a5568;
}
.pricing-features li i {
    color: #48bb78;
    margin-right: 12px;
    font-size: 1.1rem;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-plan {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #f7fafc;
    color: #2d3748;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-top: auto;
}
.pricing-card:hover .btn-plan {
    background-color: var(--bs-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(3, 109, 245, 0.3);
}

/* Features Section */
.features-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    position: relative;
}
.feature-box {
    padding: 40px 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
    background: rgba(3, 109, 245, 0.08);
    color: var(--bs-primary);
    font-size: 36px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-box:hover .feature-icon-wrapper {
    background: var(--bs-primary);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}
.feature-title {
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: #2d3748;
}
.feature-desc {
    color: #718096;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* About & Contact */
.info-section {
    padding: 100px 0;
    background: #fff;
}
.info-text {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.8;
}
.contact-card {
    background: linear-gradient(-45deg, #036DF5, #00c6ff, #0072ff, #036DF5);
    background-size: 400% 400%;
    animation: gradient-anim 15s ease infinite;
    color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    height: 100%;
}
.contact-card h3 {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #fff;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-icon {
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}
.contact-details span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2px;
}
.contact-details a {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: opacity 0.2s;
    text-decoration: underline;
}
.contact-details a:hover {
    opacity: 0.8;
}

.contact-item-new {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 991.98px) {
    .hero-section { text-align: center; }
    .hero-title { font-size: 2.8rem; }
    .hero-img { margin-top: 3rem; max-width: 80%; }
    .hero-content .d-flex { justify-content: center; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
}

/* Footer Styles */
.main-footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-text {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}
.footer-links a {
    font-size: 0.9rem;
}
.footer-links a:hover {
    text-decoration: underline !important;
    color: #333 !important;
}

/* Hero Background Icons */
.hero-bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}
.hero-bg-icons i {
    position: absolute;
    color: rgba(3, 109, 245, 0.08); /* Even more subtle opacity */
    font-size: 2rem;
    will-change: transform;
}

/* Individual Icon Styles with distinct animations */
.icon-1 { 
    top: 15%; 
    left: 10%; 
    font-size: 3.5rem; 
    animation: float-complex-1 25s infinite linear; 
}
.icon-2 { 
    top: 25%; 
    right: 15%; 
    font-size: 2.5rem; 
    animation: float-complex-2 20s infinite ease-in-out; 
    animation-delay: -5s;
}
.icon-3 { 
    bottom: 20%; 
    left: 15%; 
    font-size: 4.5rem; 
    animation: float-complex-3 28s infinite ease-in-out; 
    opacity: 0.05;
}
.icon-4 { 
    bottom: 30%; 
    right: 8%; 
    font-size: 3rem; 
    animation: float-complex-1 22s infinite linear reverse; 
    animation-delay: -2s;
}
.icon-5 { 
    top: 45%; 
    left: 45%; 
    font-size: 2rem; 
    animation: float-complex-2 18s infinite ease-in-out; 
    animation-delay: -8s;
}
.icon-6 { 
    bottom: 10%; 
    right: 35%; 
    font-size: 2.8rem; 
    animation: float-complex-3 24s infinite ease-in-out reverse; 
    animation-delay: -4s;
}

/* Varied Animation Keyframes */

/* Circular/Elliptical floating */
@keyframes float-complex-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(40px, 40px) rotate(10deg); }
    50% { transform: translate(0, 80px) rotate(0deg); }
    75% { transform: translate(-40px, 40px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Vertical swaying */
@keyframes float-complex-2 {
    0% { transform: translateY(0) rotate(5deg) scale(1); }
    50% { transform: translateY(-60px) rotate(-5deg) scale(1.1); }
    100% { transform: translateY(0) rotate(5deg) scale(1); }
}

/* Diagonal drifting with opacity pulse */
@keyframes float-complex-3 {
    0% { transform: translate(0, 0) rotate(-10deg); opacity: 0.06; }
    33% { transform: translate(50px, -30px) rotate(0deg); opacity: 0.1; }
    66% { transform: translate(20px, -60px) rotate(10deg); opacity: 0.06; }
    100% { transform: translate(0, 0) rotate(-10deg); opacity: 0.06; }
}