@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #1e293b; /* Dark background */
    color: #f8fafc; /* Light text */
    display: flex;
    min-height: 100vh;
}

.container {
    display: flex;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0f172a; /* Sidebar background */
    min-height: 100vh; /* Full height of the viewport */
    padding: 20px 0;
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Add spacing below the logo */
}

.sidebar-header i {
    font-size: 30px; /* Adjust icon size */
    color: #ffffff; /* Icon color */
    margin-right: 10px; /* Space between icon and text */
}

.sidebar-header .logo {
    font-size: 20px; /* Adjust font size */
    color: #ffffff; /* Text color */
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar-menu li {
    padding: 10px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #cbd5e1;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: #1e293b;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 16px;
    color: #64748b;
}

.main-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #334155;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left i {
    font-size: 20px;
    margin-right: 20px;
    color: #64748b;
}

.header-left .title-group {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.header-left h1 {
    font-size: 24px;
    margin: 0;
}

.header-left span {
    font-size: 14px;
    color: #64748b;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .profile {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-right .profile i {
    font-size: 20px;
    margin-right: 10px;
    color: #64748b;
}

.header-right .profile span {
    margin-left: 5px;
}

.header-right .profile .role {
    font-size: 12px;
    color: #64748b;
    margin-left: 10px;
}

.header-right i {
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
}

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

.card {
    background-color: #0f172a;
    padding: 90px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effect */
}

.card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.card-content span {
    display: block;
    font-size: 16px;
}

.card-purple {
    background-image: linear-gradient(to right, #6d28d9, #8b5cf6);
}

.card-indigo {
    background-image: linear-gradient(to right, #4f46e5, #6366f1);
}

.card-orange {
    background-image: linear-gradient(to right, #ea580c, #f97316);
}

.card-green {
    background-image: linear-gradient(to right, #16a34a, #22c55e);
}

.card-yellow {
    background-image: linear-gradient(to right, #eab308, #facc15);
}

.deployment-summary h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Match top-cards layout */
    gap: 20px; /* Same gap as top-cards */
    margin-bottom: 30px; /* Add spacing below the section */
}

.summary-card {
    background-color: #0f172a;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 150px; /* Adjust height to match top-cards */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effect */
}

.summary-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.summary-card-icon {
    background-color: #1e293b;
    color: #64748b;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-card h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 16px; /* Adjust font size for consistency */
}

.summary-card p {
    margin-top: 0;
    font-size: 14px;
    color: #64748b;
}

.card, .summary-card {
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effect */
}

.card:hover, .summary-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

.back-button {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the current text color */
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #cbd5e1; /* Change color on hover */
}

.main-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background-color: #0f172a; /* Match the sidebar background */
}

/* Hover effect for interactive cards */
.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interactive-card.hovered {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Collapsible sections */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.collapsible-content.collapsed {
    max-height: 500px; /* Adjust based on content */
}
.collapsible-header {
    cursor: default; /* Remove pointer cursor */
    user-select: text; /* Allow text selection */
    color: inherit; /* Keep default text color */
}
.collapsible-header:hover {
    color: inherit; /* Remove hover effect */
}

/* Loading state for cards */
.card.loading, .summary-card.loading {
    opacity: 0.6;
    pointer-events: none;
    background-image: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}