/* 🎨 Style ogólne aplikacji VoiceStream */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1c1c2b;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row{
    overflow: hidden;
}

a {
    color: #00d9ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 🎯 Sekcja tytułu strony */
.page-title {
    text-align: center;
    padding: 60px 20px;
    border-bottom: 1px solid #1f1f2d;
}

.page-title h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
    font-family: 'Segoe UI', sans-serif;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    line-height: 21px;
}

.nav-links .btn:hover{
    color: #000;
}

.errors,
.success,
.info {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.errors {
    background-color: #6c1e1e;
    color: #fff;
}

.success {
    background-color: #1e6c3f;
    color: #fff;
}

.info {
    background-color: #1e3d6c;
    color: #fff;
}

/* 🔝 Styl nagłówka (header) */
.main-header {
    background-color: #181824;
    padding: 20px 0;
    border-bottom: 1px solid #2e2e3e;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.flex-center {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links{
    display: flex;
    align-items: center;
    gap:30px;
}

.nav-links a {
    color: #ffffffcc;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00d9ff;
}

.nav-links a.user-menu,
.nav-links a.admin-menu{
    background-color: #00d9ff;
    color: #000;
    padding: 10px 25px;
    border: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s;
    text-decoration: none;
}
.nav-links a.user-menu:hover,
.nav-links a.admin-menu:hover{
    background-color: #00c4e2;
}

.avatar-link {
    display: inline-block;
    margin-left: 10px;
}

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #00d9ff22;
    object-fit: cover;
    transition: transform 0.2s;
}

.avatar-circle:hover {
    transform: scale(1.05);
}
/* 🔚 Styl stopki (footer) */
footer {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #333;
    margin-top: 60px;
}

footer a {
    color: #00d9ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* 🎨 Styl SweetAlert2 w ciemnym motywie dopasowanym do aplikacji */

.swal2-popup {
    background: #232334 !important;
    color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) !important;
    padding: 60px;
}

.swal2-title {
    color: #00d9ff !important;
    font-size: 20px !important;
}

.swal2-html-container {
    color: #ccc !important;
    font-size: 16px;
}

.swal2-confirm, .swal2-cancel {
    background-color: #00d9ff !important;
    color: #000 !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    font-weight: bold !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.swal2-confirm:hover, .swal2-cancel:hover {
    background-color: #00c4e2 !important;
}

.swal2-icon {
    margin: 0 auto 15px !important;
}

.swal2-icon-success .swal2-success-ring {
    border: 0.25em solid #00d9ff !important;
}

.swal2-icon-error {
    border-color: #ff5555 !important;
    color: #ff5555 !important;
}

/* 🎨 Stylizacja widoku błędu 404 */

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to right, #2a2a3d, #1f1f2b);
    color: #fff;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}

.btn.primary {
    background-color: #00d9ff;
    color: #000;
    padding: 10px 25px;
    border: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn.primary:hover {
    background-color: #00c4e2;
}

.landing-page .btn{
    margin-top: 20px;
}

.menu-toggle {
    display: none;
    background: #00d9ff;
    color: #000;
    border: none;
    font-size: 20px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
}

/** HOME WTYCZKA **/

.chrome-extension-section {
    background: #1b1b28;
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid #2e2e3f;
}

.extension-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.extension-image img {
    max-width: 140px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    background: #232334;
    padding: 20px;
}

.extension-text h2 {
    margin-top: 0;
}

.extension-text p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.extension-text .btn.primary {
    background: #00d9ff;
    color: #000;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* REKLAMY **/

.global-ad {
    position: relative;
    text-align: center;
    margin: 15px auto;
}
.global-ad img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.global-ad-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #00d9ff;
}
.global-ad-desc {
    font-size: 13px;
    color: #ccc;
    margin-top: 5px;
}

.global-ad-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}
.global-ad-right {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

/** AI ASYSTENT **/

#ai-chat-bubble {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #00d9ff;
    color: #000;
    width: 45px;
    height: 45px;
    font-size: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    z-index: 9999;
}
#ai-chat-box {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 400px;
    background: #1e1e2f;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
    flex-direction: column;
}
.ai-chat-header {
    background: #00d9ff;
    color: #000;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}
.ai-chat-messages {
    padding: 10px;
    height: 250px;
    overflow-y: auto;
    font-size: 14px;
}
.ai-chat-messages div {
    margin-bottom: 8px;
}
.ai-chat-messages .user {
    text-align: right;
    color: #00d9ff;
}
.ai-chat-messages .ai {
    text-align: left;
    color: #fff;
}
#ai-chat-form {
    display: flex;
    border-top: 1px solid #444;
    margin-bottom: 0;
}
#ai-chat-input {
    flex: 1;
    padding: 10px;
    background: #2a2a3d;
    border: none;
    color: #fff;
}
#ai-chat-input:focus {
    outline: none;
}
#ai-chat-form button {
    background: #00d9ff;
    border: none;
    color: #000;
    padding: 0 15px;
    cursor: pointer;
}

.ai-section-title {
    display: block;
    font-size: 1.1em;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #00d9ff;
}

.ai ul {
    padding-left: 20px;
    margin: 5px 0 10px;
}

.ai li {
    margin-bottom: 4px;
    line-height: 1.4;
}

div:where(.swal2-container){
    z-index: 9999 !important;
}

#lang-switcher{
    margin-bottom: 0;
}

#lang-switcher button{
    color: #fff;
    font-weight: 600;
}

/* 🎯 Mobile RWD */
@media (max-width: 960px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        background-color: #2a2a3d;
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        align-items: initial;
    }

    .nav-links.nav-visible {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 16px;
        color: #fff;
        padding: 10px 0;
        border-bottom: 1px solid #333;
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin: 0;
    }

    .avatar-link {
        position: fixed;
        top: 7px;
        right: 20px;
        z-index: 1102;
        margin-left: 0;
        margin-bottom: 20px;
        left: 20px;
    }
    
    .extension-wrapper{
        display: block;
    }
    
    .extension-image{
        margin-bottom: 30px;
    }
}