/**
 * APPLI INVEST - Style CSS
 * 
 * Projekt: Strona internetowa APPLI INVEST
 * URL: https://invest.appli.pl
 * 
 * Zawiera style dla:
 * - Navbar, Hero, Services, About, Gallery, Contact
 * - Responsywny design (mobile-first)
 * - Lightbox dla galerii
 * 
 * Dokumentacja: CHANGELOG.md, README.md, PROJECT_INFO.md
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

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

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 80.5px;
    width: auto;
    max-width: 322px;
    object-fit: contain;
}

.logo-group-img {
    height: 80.5px;
    width: auto;
    max-width: 322px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.75) 0%, rgba(52, 152, 219, 0.75) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--light-bg);
}

.reviews-content {
    max-width: 800px;
    margin: 0 auto;
}

.reviews-rating {
    text-align: center;
    margin-bottom: 0;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.reviews-separator {
    height: 2rem;
    width: 100%;
}

.rating-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.rating-stars .star {
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.rating-score .score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.rating-score .max-score {
    font-size: 1.5rem;
    color: #666;
}

.rating-count {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-stars {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.review-stars span {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.review-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .reviews {
        padding: 50px 0;
    }

    .reviews-rating {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .rating-stars .star {
        font-size: 2rem;
    }

    .rating-score .score {
        font-size: 2.5rem;
    }

    .rating-score .max-score {
        font-size: 1.2rem;
    }

    .rating-count {
        font-size: 1rem;
    }

    .review-item {
        padding: 1.25rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .review-author {
        font-size: 1rem;
        width: 100%;
    }

    .review-date {
        font-size: 0.85rem;
        width: 100%;
    }

    .review-stars {
        align-self: flex-start;
        margin-top: 0.25rem;
    }

    .review-stars span {
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-top: 0.75rem;
    }
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    max-width: 100%;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2.5rem;
    color: var(--white);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
    user-select: none;
    z-index: 10000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--secondary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    margin: 0;
}

.phone-link,
.email-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.phone-link:hover,
.email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Na mobile, link telefonu jest większy i bardziej widoczny */
@media (max-width: 768px) {
    .phone-link {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 4px;
        background: rgba(52, 152, 219, 0.1);
    }
    
    .phone-link:active {
        background: rgba(52, 152, 219, 0.2);
    }
}

.contact-social {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.social-facebook-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-facebook-link:hover {
    background: #f0f7ff;
    border-color: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.facebook-icon {
    width: 81px;
    height: 81px;
    object-fit: contain;
    flex-shrink: 0;
}

.social-facebook-link span {
    color: #000;
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* Walidacja formularza */
.contact-form .form-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form input.valid,
.contact-form textarea.valid {
    border-color: #27ae60;
    padding-right: 40px;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #e74c3c;
    padding-right: 40px;
}

.contact-form .field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-form input.valid ~ .field-icon.valid-icon,
.contact-form textarea.valid ~ .field-icon.valid-icon {
    opacity: 1;
    color: #27ae60;
}

.contact-form input.invalid ~ .field-icon.invalid-icon,
.contact-form textarea.invalid ~ .field-icon.invalid-icon {
    opacity: 1;
    color: #e74c3c;
}

.contact-form textarea ~ .field-icon {
    top: 20px;
    transform: none;
}

.contact-form .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    padding-left: 5px;
}

.contact-form .error-message.show {
    display: block;
}

.contact-form .success-message {
    color: #27ae60;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
    padding-left: 5px;
}

.contact-form .success-message.show {
    display: block;
}

.contact-form button {
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    * {
        max-width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-container {
        gap: 1.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .logo-img {
        height: 80.5px;
        width: auto;
        max-width: 322px;
        object-fit: contain;
    }

    .logo-group-img {
        height: 80.5px;
        width: auto;
        max-width: 322px;
        object-fit: contain;
        display: block;
    }

    .hero {
        background-attachment: scroll;
        padding: 80px 15px 40px;
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .gallery-grid {
        gap: 0.5rem;
        padding: 0;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
    }

    .review-item {
        width: 100%;
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    iframe {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 0.75rem;
    }

    .gallery-item {
        border-radius: 6px;
    }

    .gallery-icon {
        font-size: 2rem;
    }

    .lightbox {
        width: 100vw;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    .lightbox-image {
        max-width: 95vw;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-text p {
    margin: 5px 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner-text p:first-child {
    font-weight: 600;
    margin-bottom: 8px;
}

.cookie-banner-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--primary-color);
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-info {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cookie-accept:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.btn-cookie-reject {
    background: #e0e0e0;
    color: var(--text-color);
}

.btn-cookie-reject:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.btn-cookie-info {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-cookie-info:hover {
    background: var(--secondary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-text {
        margin-bottom: 15px;
    }

    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cookie-accept,
    .btn-cookie-reject,
    .btn-cookie-info {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #1a252f;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 100px; /* Wyżej, żeby nie kolidować z bannerem cookies */
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Ukryj badge reCAPTCHA (informacja o reCAPTCHA jest w polityce prywatności) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.warning {
    border-left: 4px solid #f39c12;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #27ae60;
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

