/* ============================================
   VARIÁVEIS E ESTILOS GLOBAIS
   ============================================ */

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --success-color: #25d366;
    --text-light: #eaeaea;
    --text-muted: #b0b0b0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-light) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--success-color) !important;
    transform: scale(1.05);
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--success-color);
}

.nav-link {
    color: var(--text-light) !important;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--success-color) !important;
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideInLeft 0.8s ease-out;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.hero-content .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: slideInLeft 0.8s ease-out 0.4s both;
    align-items: center;
}

.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    min-width: fit-content;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-success:hover {
    background-color: #1da857;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-success i {
    margin-right: 0.5rem;
}

/* ============================================
   PROFILE IMAGE
   ============================================ */

.profile-image-container {
    position: relative;
    display: inline-block;
    animation: slideInRight 0.8s ease-out;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(37, 211, 102, 0.3);
    border: 3px solid var(--success-color);
    transition: all 0.3s ease;
    object-fit: cover;
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 75px rgba(37, 211, 102, 0.4);
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 3rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

.about-card:hover {
    border-color: var(--success-color);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
    transform: translateY(-5px);
}

.about-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.about-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-card p.text-muted {
    color: var(--text-light) !important;
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1rem;
}

.about-card .lead {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-badge {
    padding: 0.5rem 1.25rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 25px;
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--success-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

/* ============================================
   CARROSSEL HORIZONTAL DE PROJETOS
   ============================================ */

.projects-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--success-color) transparent;
    -webkit-overflow-scrolling: touch;
}

.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: var(--success-color);
    border-radius: 10px;
}

.projects-carousel::-webkit-scrollbar-thumb:hover {
    background: #1da857;
}

.project-carousel-item {
    flex: 0 0 auto;
    width: 400px;
    min-width: 400px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--success-color);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.3);
    transform: translateY(-15px) scale(1.02);
}

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* ============================================
   SEÇÃO DE RECOMENDAÇÕES
   ============================================ */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.2);
    border-color: var(--success-color);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.testimonial-photo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(102, 126, 234, 0.2);
    flex-shrink: 0;
}

.testimonial-author-info {
    flex: 1;
}

.testimonial-author-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-light);
    margin: 0;
}

.testimonial-author-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
}

.testimonial-company {
    font-size: 0.85rem;
    color: var(--success-color);
    margin: 0.25rem 0 0 0;
}

.testimonial-content {
    flex: 1;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.1rem;
}

.testimonial-rating i.empty {
    color: var(--text-muted);
    opacity: 0.3;
}

/* Estrelas interativas para avaliação no modal */
.rating-stars-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
}

.rating-star {
    font-size: 2rem;
    color: #ddd;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.rating-star:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-star.active {
    color: #ffc107;
}

.rating-star.active ~ .rating-star {
    color: #ddd;
}

.rating-text {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.testimonial-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Botões de navegação do carrossel */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 211, 102, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel-nav-btn:hover {
    background: var(--success-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav-btn i {
    transition: transform 0.3s ease;
}

.carousel-nav-btn:hover i {
    transform: scale(1.2);
}

.project-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.project-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-type-download {
    background: rgba(13, 110, 253, 0.9);
    color: white;
}

.project-type-contact {
    background: rgba(255, 193, 7, 0.9);
    color: var(--primary-color);
}

.project-type-badge i {
    margin-right: 0.5rem;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-description.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    max-height: calc(1.6em * 7);
}

.project-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    max-height: none;
}

.project-body .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(102, 126, 234, 0.4) !important;
    border: 1px solid rgba(102, 126, 234, 0.6) !important;
    border-radius: 15px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

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

.btn-demo {
    background: var(--success-color);
    color: white;
}

.btn-demo:hover {
    background: #1da857;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white;
}

.btn-github {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-download {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.btn-download:hover {
    background: rgba(102, 126, 234, 0.3);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-contact {
    background: rgba(37, 211, 102, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(37, 211, 102, 0.4);
}

.btn-contact:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-prints {
    background: rgba(118, 75, 162, 0.2);
    color: var(--text-light);
    border: 1px solid rgba(118, 75, 162, 0.4);
}

.btn-prints:hover {
    background: rgba(118, 75, 162, 0.3);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Modal de Prints */
.modal-content {
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--text-light);
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--success-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

.contact-card:hover {
    border-color: var(--success-color);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.2);
    transform: translateY(-10px);
}

.contact-icon {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--success-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    color: var(--text-muted);
}

.footer p {
    margin: 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    color: var(--success-color);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--success-color);
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

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

    .hero-content .lead {
        font-size: 1rem;
    }

    .badge-container {
        justify-content: center;
    }

    .btn-success {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 1rem;
    }

    .profile-image {
        max-width: 300px;
        margin-top: 2rem;
    }

    .about-section,
    .projects-carousel-wrapper {
        padding: 0 50px;
    }
    
    .project-carousel-item {
        width: 350px;
        min-width: 350px;
    }
    
    .projects-section,
    .contact-section {
        padding: 60px 0;
    }

    .about-card,
    .contact-card {
        padding: 2rem;
    }

    .about-card h2,
    .contact-section h2,
    .section-title {
        font-size: 1.8rem;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-collapse {
        background: var(--secondary-color);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

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

    .hero-content .lead {
        font-size: 0.95rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        height: 2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-sizing: border-box;
    }

    .about-icon,
    .contact-icon {
        font-size: 2.5rem;
    }

    .about-card h2,
    .section-title {
        font-size: 1.5rem;
    }

    .project-image-wrapper {
        height: 200px;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .footer {
        text-align: center;
    }

    .footer .row {
        text-align: center;
    }

    .social-link {
        margin: 0.25rem;
    }
}

/* ============================================
   NOTIFICAÇÕES TOAST CUSTOMIZADAS
   ============================================ */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(10px);
}

.toast-notification.success {
    border-left: 4px solid var(--success-color);
}

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

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

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

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    color: var(--success-color);
}

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

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

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

.toast-content {
    flex: 1;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-notification.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 576px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}
