@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
:root {

    --neutral-color-100: #f8f9fd;
    --neutral-color-200: #e0e2f0;
    --neutral-color-300: #c0c3d0;
    --neutral-color-400: #a0a3b0;
    --neutral-color-500: #808390;
    --primary-color-100: #e0f2ff;
    --primary-color-200: #b3e0ff;
    --primary-color-300: #80cfff;
    --primary-color-400: #4dcfff;
    --primary-color-500: #17b4e4;
    --primary-color-600: #0f8fbf;
    --primary-color-700: #0b6a9f;
    --primary-color-800: #084a7f;
    --primary-color-900: #042f5f;
    --info-color-500: #0296ff;
    --secondary-color: #f8f9fd;
    --text-color: rgb(74, 74, 74);
    --hover-bg-color: rgb(250, 255, 251);
    --status-in-progress: #ebba0b;
}

body {
    background-color: #f8f9fd;
    font-family: roboto;
    color: rgb(74, 74, 74);
    margin: 0px;
    padding: 0px;
}

li {
    text-decoration: none;
    padding: 1px 0;
    margin: 5px 5px;
    list-style: none;
}

ul {
    margin:1px;
    padding: 0;
    list-style-type: none;
}
select {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-color-500);
    font-size: 14px;
    color: var(--text-color);
}
.container {
        max-width: 1200px;
        margin: 0px auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    /* background-color: white; */
    /* border-radius: 12px; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    margin-bottom: 20px;
    color: var(--primary-color-500);
}

.header h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-link {
    text-decoration: none;
    color: var(--primary-color-500);
    transition: color 0.2s ease;
}

.header-link:hover {
    color: var(--primary-color-600);
}

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

.nav-link {
    text-decoration: none;
    color: var(--primary-color-500);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--primary-color-500);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: var(--primary-color-500);
    color: white;
}



.serviceTable {
    padding: 20px;
}

.serviceRow {
    justify-content: space-between;
    background-color: white;
    margin: 8px 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    padding: 16px 20px;
    min-height: 80px;
    transition: all 0.2s ease;
}

.serviceRow:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--neutral-color-100);
    transform: translateY(-1px);
}
.serviceTitle {
    display: flex;
    justify-content: left;
    margin: 2px;;
    border: 1px white;
}
.serviceHealth{
    display: flex;
    justify-content: left;
    margin: 2px;

}
.serviceWrapper {
    display: flex;
    justify-items: space-between;
    width: 100%;
    align-items: center;
}
.serviceHeaderLeft{
    display: flex;
    justify-items: left;
    width: 100%;
    align-items: center;
}
.serviceDescWrapper {
    display: flex;
    justify-content: left;
    width: 100%;
    font-size: 12px;
    color:#aaaaaa;
}
.serviceName {
    display: block;
    text-transform: uppercase;
    text-align: left;
    margin-right: 10px;
}
.serviceType {
    display: block;
    text-align: left;
    margin-right: 10px;
    font-weight: bold;
    
}
.servicePlatform {
    display: block;
    text-align: left;
    margin-right: 10px;
}
.serviceTeam {
    display: block;
    text-align: left;
    margin-right: 5px;
    
}
.serviceStatusToDo {
    display: block;
    margin-left: 5px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
    padding: 4px 8px;
    background-color: var(--info-color-500);
    border-radius: 5px;
    color: white;
}

.statusInProgressDev {
    display: block;
    margin-left: 5px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
    padding: 4px 8px;
    background-color: var(--status-in-progress);
    border-radius: 5px;
    color: white;
}
.statusInProgressCu {
    display: block;
    margin-left: 5px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
    padding: 4px 8px;
    background-color: var(--status-in-progress);
    border-radius: 5px;
    color: white;
}

.serviceStatusDone {
    display: block;
    margin-left: 5px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-align: left;
    padding: 4px 8px;
    background-color: rgb(18, 161, 46);
    border-radius: 5px;
    color: white;
}

.statusBar {
    margin: 10px 0;
    height: 40px;
    background-color: var(--neutral-color-200);
}
.statusBarToDo {
    background-color:var(--info-color-500);
    width: 50%;
    height: 100%;
}
.statusBarInProgress {
    background-color:var(--status-in-progress);
    height: 100%;
    animation: progressBar 1s ease-in-out;
    animation-fill-mode:both; 
}

.statusBarInProgressCu {
    animation: progressBar 1s ease-in-out;
    animation-fill-mode:both; 
    background-image: linear-gradient(to right, var(--status-in-progress), rgb(26, 163, 53));
    height: 100%;
}

.statusBarDone {
    background-color: rgb(26, 163, 53);
    height: 100%;
    animation: progressBar 1s ease-in-out;
    animation-fill-mode:both; 
}

.searchInput {
    width: 100%;
    border: 1px solid var(--primary-color-500);
    border-right: none;
    border-radius: 8px 0px 0px 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-color);
    background-color: white;
    height: 38px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.searchInput:hover {
    border-color: var(--primary-color-600);
}
.searchInput:focus {
    outline: none;
    border-color: var(--primary-color-600);
    box-shadow: 0 0 0 2px rgba(23, 180, 228, 0.2);
}
.searchButton {
    border: 1px solid var(--primary-color-500);
    border-left: none;
    border-radius: 0px 8px 8px 0px;
    padding: 8px 12px;
    background: var(--primary-color-500);
    height: 38px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.searchButton:hover {
    cursor: pointer;
    background: var(--primary-color-600);
    border-color: var(--primary-color-600);
}

.searchBox {
    display: flex;
    align-items: center;
    width: 100%;
}

.searchForm {
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}
.filtersForm {
    display: flex;
    padding: 2px 5px;
}
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background-color: var(--primary-color-500);
    color: white;
    font-size: 14px;
    cursor: pointer;
}
.btn:hover {
    background-color: var(--primary-color-600);
}
.btn-reset {
    background-color: var(--neutral-color-200);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--neutral-color-300);
    font-size: 14px;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
.btn-reset:hover {
    background-color: var(--neutral-color-300);
    border-color: var(--neutral-color-400);
}

.paginationWrapper {
    margin: 0;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
.pagination {
    list-style: none;
    display: flex ;
}

li.paginationItem{
    margin: 0;
}

.paginationItem {
    padding: 5px 10px;
    border: 1px solid var(--primary-color-500);
    cursor: pointer;
}
.paginationItem:hover {
    background-color: var(--primary-color-500);
    color: white;
}
.paginationItem:hover a {

    color: white;
}
.paginationItem.active {
    background-color: var(--primary-color-500);
    color: white;
}
.paginationItem.active a{
    background-color: var(--primary-color-500);
    color: white;
}

.paginationItem a {
    text-decoration: none;
    color:  var(--primary-color-500);
}
.paginationItem a:hover {
    color: white;
}
.paginationItem a.active {
    color: white;
}
.paginationItem a.disabled {
    color:  var(--primary-color-500);
}

.paginationItem.first {
    border-radius: 10px 0px 0px 10px;

}
.paginationItem.next {
    border-radius: 0px 10px 10px 0px;
}

.statisticsWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.statisticsCard {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    text-align: center;
    
}
.statisticsCard h3 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color-500);
}
.statisticsCard p {
    margin: 5px 0;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
}

/* Stili per i link di navigazione */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: var(--primary-color-600);
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: var(--primary-color-700);
}

@keyframes progressBar {
  0% { width: 0; }
  /* 100% { width: 100%; } */
}

/* Stili per i badge degli ambienti */
.serviceWrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.environment-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: 15px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.environment-badge {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.environment-badge:hover {
    transform: scale(1.05);
}

.environment-badge .env-name {
    margin-right: 2px;
}

/* Colori a seconda dello stato */
.env-status-0 {
    background-color: #6c757d; /* Grigio per Todo */
    color: white;
}

.env-status-1, .env-status-2, .env-status-3 {
    background-color: #f0ad4e; /* Giallo per In Progress */
    color: white;
}

.env-status-4 {
    background-color: #28a745; /* Verde per Done */
    color: white;
}

.env-status-5 {
    background-color: #dc3545; /* Rosso per Cancelled */
}

.env-status-none {
    background-color: var(--neutral-color-400);
    color: white;
    font-style: italic;
}

/* Stili per la sezione filtri */
.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    min-width: 300px;
}

.status-filter, .platform-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-filter select, .platform-filter select, .team-filter select {
    width: 200px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--primary-color-500);
    font-size: 14px;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    height: 38px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.status-filter select:focus, .platform-filter select:focus {
    outline: none;
    border-color: var(--primary-color-600);
    box-shadow: 0 0 0 2px rgba(23, 180, 228, 0.2);
}

.filter-actions {
    display: flex;
    align-items: center;
}

.content-section {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 15px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .status-filter select, .platform-filter select {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .filters-section {
        padding: 10px;
    }
    
    .filters-container {
        gap: 10px;
    }
}