/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis CSS para paleta de cores inspirada no Arduino */
:root {
    --primary-cyan: #00979D;
    --primary-teal: #006064;
    --accent-green: #4CAF50;
    --dark-gray: #263238;
    --light-gray: #ECEFF1;
    --white: #FFFFFF;
    --text-dark: #212121;
    --text-light: #757575;
    --shadow-color: rgba(0, 151, 157, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-teal));
    --gradient-accent: linear-gradient(135deg, var(--accent-green), #66BB6A);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 60px; /* Aumentado para 60px */
    border-radius: 10px; /* Bordas arredondadas */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra */
}    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.text-gradient {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
    color: white;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Hero Dashboard */
.hero-dashboard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dashboard-preview {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    top: 40%;
    right: 5%;
    animation-delay: 4s;
}

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

/* Stats Section */
.stats-section {
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 30px 30px 0 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 151, 157, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* Solutions Section */
.solution-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-cyan);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 151, 157, 0.05), rgba(76, 175, 80, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.solution-icon i {
    font-size: 2rem;
    color: white;
}

.solution-card h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.solution-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.solution-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.solution-features li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Alerts Section */
.alerts-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.alerts-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.alert-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.alert-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.alert-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.alert-icon i {
    font-size: 2rem;
    color: white;
}

.alert-card h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: bold;
}

.alert-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Demo Section */
.demo-preview {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 151, 157, 0.1);
}

.demo-content {
    padding: 2rem 0;
}

.feature-list {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    background: var(--gradient-primary);
    position: relative;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: white;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-form .form-floating > label {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

/* Dashboard Styles */
.dashboard-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.metric-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid var(--primary-cyan);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-cyan);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-normal {
    background: #d4edda;
    color: #155724;
}

.status-alert {
    background: #f8d7da;
    color: #721c24;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Cases Selection */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-cyan);
}

.case-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.case-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-weight: bold;
}

.case-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .floating-elements {
        display: none;
    }
    
    .stats-section {
        margin-top: 0;
    }
    
    .solution-card,
    .alert-card,
    .contact-form-wrapper {
        margin-bottom: 2rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-gradient {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .solution-card,
    .alert-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Video Container */
.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.video-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* Benefits Section */
.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 151, 157, 0.1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-card h4 {
    color: var(--primary-teal);
    margin-bottom: 1rem;
    font-weight: bold;
}

.benefit-stat {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.benefit-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 1.5rem;
}

.benefit-list li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Success Stories */
.success-stories {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 151, 157, 0.1);
}

.story-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 151, 157, 0.1);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-company {
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.story-result {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.story-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-teal);
}


/* Estilos para simulação de falha */
.freezer-failure {
    background: linear-gradient(135deg, #ff4757, #ff3838) !important;
    border-color: #ff4757 !important;
    animation: pulse-failure 1.5s infinite;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5) !important;
}

.freezer-failure .freezer-header h6,
.freezer-failure .freezer-temp,
.freezer-failure .freezer-details {
    color: white !important;
}

.freezer-failure .status-indicator.status-failure {
    background: #fff !important;
    color: #ff4757 !important;
    font-weight: bold;
    animation: blink-failure 1s infinite;
}

/* Animação de pulsação para falha */
@keyframes pulse-failure {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(255, 71, 87, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }
}

/* Animação de piscar para o status */
@keyframes blink-failure {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Estilo para status de falha */
.status-failure {
    background: #ff4757;
    color: white;
    font-weight: bold;
    animation: blink-failure 1s infinite;
}

/* Melhorar visibilidade do card em falha */
.freezer-failure:hover {
    box-shadow: 0 8px 35px rgba(255, 71, 87, 0.6) !important;
}

