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

body {
    font-family: 'Arial', sans-serif;
    background: #020617;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #324158;
    padding: 20px;
    border-bottom: 1px solid rgba(80, 162, 255, 0.2);
}

.header[hidden] {
    display: none !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header h1 i {
    margin-right: 15px;
    color: #50A2FF;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-info span {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-silence {
    background: #e4290c;
    padding: 20px;
    display: flex;
}

.header-silence[hidden] {
    display: none !important;
}

.header-silence h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

section h2 i {
    margin-right: 15px;
    color: #FF9800;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.card {
    background: #324158;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(80, 162, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
}

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

.card-today {
    --card-color: #50A2FF;
}

.card-week {
    --card-color: #50A2FF;
}

.card-completed {
    --card-color: #4CAF50;
}

.card-attention {
    --card-color: #F44336;
}

.card-incidents {
    --card-color: #F90505;
}

.card-overdue {
    --card-color: #F98B05;
}

.card-tickets-open {
    --card-color: #6272ED;
}

.card-improvements-open {
    --card-color: #EFE85C;
}


.card-dev-hope {
    --card-color: #50A2FF;
}

.card-dev-stms {
    --card-color:#f66e19;
}

.card-dev-copilot {
    --card-color:#ea0f0f;
}

.card-dev-bug {
    --card-color: #F44336;
}

.card-assets {
    --card-color: #50A2FF;
}

.card-deployed {
    --card-color: #d0853f;
}

.card-available {
    --card-color: #2d8211;
}

.card-pending {
    --card-color: #f67a07;
}

.card-notebooks {
    --card-color: #e3f53e;
}

.card-monitors {
    --card-color: #e68b13;
}

.card-smartphones {
    --card-color: #aa13e6;
}

.card-users {
    --card-color: #13c6e6;
}

.card-resource-users {
    --card-color: #a0e613;
}

.card-external-users {
    --card-color: #1384e6;
}

.card-licenses {
    --card-color: #eb092b;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--card-color);
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    text-align: center;
    margin: 20px 0;
}

.card-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--card-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* .card-footer {
    display: flex;
    justify-content: flex-end;
}

.trend {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.trend.positive {
    color: #4CAF50;
}

.trend.negative {
    color: #F44336;
} */

.recent-tickets {
    background: #324158;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(80, 162, 255, 0.2);
}

.recent-tickets h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.recent-tickets h3 i {
    margin-right: 12px;
    color: #FF9800;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #50A2FF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.ticket-info p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.ticket-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-open {
    background: rgba(80, 162, 255, 0.2);
    color: #50A2FF;
}

.status-progress {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.status-urgent {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.spotify-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.spotify-player {
    background: #324158;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(80, 162, 255, 0.2);
}

.player-info {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.album-art {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1DB954, #191414);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    overflow: hidden;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.track-info {
    flex: 1;
}

.track-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.artist-name {
    font-size: 1.1rem;
    opacity: 0.7;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    background: #50A2FF;
    font-size: 1.5rem;
}

.control-btn.play-pause:hover {
    background: #4090ff;
}

.player-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #50A2FF;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.7;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.volume-control i {
    opacity: 0.7;
}

#volume-slider {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #50A2FF;
    border-radius: 50%;
    cursor: pointer;
}

.spotify-auth {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-connect {
    padding: 15px 30px;
    background: #1DB954;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-connect:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 185, 84, 0.3);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.connection-status i {
    font-size: 0.7rem;
}

.connection-status.connected i {
    color: #4CAF50;
}

.connection-status.disconnected i {
    color: #F44336;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: #fff;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 1.2rem;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #324158;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

.modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.config-section {
    margin-bottom: 30px;
}

.config-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #FF9800;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #50A2FF;
    box-shadow: 0 0 0 3px rgba(80, 162, 255, 0.1);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.btn-save {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.config-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #324158;
    border: 1px solid rgba(80, 162, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.config-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

@media (max-width: 1200px) {
    .spotify-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spotify-auth {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info {
        flex-direction: column;
        text-align: center;
    }
    
    .album-art {
        width: 120px;
        height: 120px;
    }
}

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

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

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

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ===========================
   DASHBOARD CAROUSEL STYLES
   =========================== */

/* Container principal do carrossel */
.dashboard-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Slides do carrossel */
.dashboard-carousel .swiper-slide {
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Navegação personalizada */
.swiper-button-next,
.swiper-button-prev {
    color: #50A2FF !important;
    background: none;
    width: 44px;
    height: 44px;
    border-radius: 0;
    transition: all 0.3s ease;
    backdrop-filter: none;
    border: none;
}

.swiper-button-next {
    right: -50px;
}

.swiper-button-prev {
    left: 50px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: none;
    color: #FF9800 !important;
    transform: scale(1.2);
    box-shadow: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

/* Paginação personalizada */
.swiper-pagination {
    bottom: 20px !important;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 8px;
}

.swiper-pagination-bullet-active {
    background: #50A2FF;
    border-color: rgba(80, 162, 255, 0.3);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(80, 162, 255, 0.6);
}

/* Bullets dinâmicos com nomes */
.swiper-pagination-bullet {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 8px 16px;
    background: rgba(50, 65, 88, 0.9);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(80, 162, 255, 0.2);
}

.swiper-pagination-bullet-active {
    background: rgba(80, 162, 255, 0.9);
    color: white;
    border-color: #50A2FF;
}

.swiper-pagination-bullet .slide-name {
    display: block;
    white-space: nowrap;
}

/* Barra de progresso personalizada */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.carousel-progress .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #50A2FF, #FF9800);
    transition: width 0.3s ease;
}

/* Animação da barra de progresso */
@keyframes carousel-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Indicadores de slide no header (opcional) */
.carousel-indicators {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator.active {
    background: #50A2FF;
    box-shadow: 0 0 10px rgba(80, 162, 255, 0.6);
}

/* Controles adicionais (play/pause) */
.carousel-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.carousel-control-btn {
    background: rgba(50, 65, 88, 0.9);
    border: 1px solid rgba(80, 162, 255, 0.3);
    color: #50A2FF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control-btn:hover {
    background: rgba(80, 162, 255, 0.9);
    color: white;
    transform: scale(1.1);
}

.carousel-control-btn i {
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .swiper-pagination-bullet {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .carousel-controls {
        top: 10px;
        left: 10px;
    }
    
    .carousel-control-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Ocultar setas em telas muito pequenas */
    }
    
    .swiper-pagination-bullet .slide-name {
        display: none; /* Mostrar apenas bullets em mobile */
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Efeitos de entrada suaves para os slides */
.swiper-slide-active {
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state para o carrossel */
.carousel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.6);
}

.carousel-loading i {
    font-size: 2rem;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 