@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* Global color variables for consistent branding across the UI */
:root {
    --primary-bg: #ffe6fe;
    --ubuntu-orange: #e95420;
    --ssh-yellow: #e6c141;
    --debian-red: #a50034;
    --red-accent: #c00000;
    --docker-blue: #0db7ed;
    --nginx-green: #43a047;
    --teamspeak-blue: #2185D0;
    --opencloud-accent: #223d44;
    --text-main: #d1d1e0;
    --code-bg: #282c34;
    --border-color: #444b6a;
    --btn-bg: #444b6a;
}

/* Layout for the main dashboard grid and card spacing */
.dashboard-container {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Removes default link styling for cards used as navigation */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Specific styling for decorative icons within cards */
.icon-box {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #7aa2f7; 
}

/* Flexbox helper to align icons and text in headers */
.header-flex {
    display: flex;
    align-items: center;
}

/* Core body setup to handle the full-screen layout and background */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    margin: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Centered wrapper for the interactive slide elements */
.slides-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Hidden by default; toggled via JS for the presentation effect */
.slide {
    display: none; 
    width: 95%;
    max-width: 1250px;
    animation: fadeIn 0.4s ease-out;
}

/* Shows the current active slide */
.slide.active {
    display: block;
}

/* Smooth entry animation for slide transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* The main container for slide content with a dark terminal aesthetic */
.presentation-card {
    background-color: #24283b;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Styling for slide titles */
.header {
    padding: 20px 50px;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #1e1e2e;
}

/* Unique color themes for specific software/service headers */
.header.ubuntu { background-color: var(--ubuntu-orange); color: #ffffff; }
.header.ssh { background-color: var(--ssh-yellow); }
.header.upgrades { background-color: var(--debian-red); color: #ffffff; }
.header.fail2ban { background-color: var(--red-accent); color: #ffffff; }
.header.docker { background-color: var(--docker-blue); color: #ffffff; }
.header.nginx { background-color: var(--nginx-green); color: #ffffff; }
.header.teamspeak { background-color: var(--teamspeak-blue); color: #ffffff; }
.header.opencloud { background-color: var(--opencloud-accent); color: #dab9ff; }

/* Scrollable area for slide text and data tables */
.content {
    padding: 20px 40px;
    max-height: 78vh;
    overflow-y: auto;
}

/* Table layout for organizing commands and technical details */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    opacity: 0.5;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.8em;
}

td {
    padding: 8px 0;
    border-bottom: 1px solid #3b4261;
    vertical-align: middle;
}

/* Inline terminal-style styling for Linux commands */
.command {
    font-family: 'Courier New', monospace;
    background-color: var(--code-bg);
    padding: 3px 8px;
    border-radius: 6px;
    color: #efefef;
    font-size: 0.85em;
    display: inline-block;
    white-space: pre-wrap;
}

/* Secondary text style for explanations next to commands */
.description {
    font-style: italic;
    color: #a9b1d6;
    padding-left: 15px;
    font-size: 0.85em;
}

/* Footer bar for navigation buttons and slide tracking */
.controls {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: #16161e;
    border-top: 1px solid var(--border-color);
}

/* Standard button styling for 'Next' and 'Previous' actions */
button {
    background-color: var(--btn-bg);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

button:hover {
    background-color: #565f89;
}

/* Display for current slide index (e.g., 1 / 10) */
.slide-number {
    font-size: 16px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* Small, color-coded badges used to identify categories within a list */
.section-label {
    font-weight: bold;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    text-transform: uppercase;
    padding: 10px 5px;
    border-radius: 3px;
    text-align: center;
    margin-right: 15px;
    height: calc(100% - 20px);
}

/* Badge color variations matching the branding */
.label-ubuntu { background-color: var(--ubuntu-orange); color: #ffffff; }
.label-debian { background-color: var(--debian-red); color: #ffffff; }
.label-docker { background-color: var(--docker-blue); color: #ffffff; }
.label-f2b { background-color: var(--red-accent); color: #ffffff; }
.label-nginx { background-color: var(--nginx-green); color: #ffffff; }
.label-ssh { background-color: var(--ssh-yellow); color: #1e1e2e; }
.label-ocloud { background-color: #223d44; color: #dab9ff; }

/* Multi-line code display with specific syntax coloring */
.code-block {
    display: block;
    margin-top: 5px;
    line-height: 1.4;
    color: #98c379;
}

/* Apply specific Ubuntu font to headers and labels for brand identity */
.header, 
.section-label, 
th {
    font-family: 'Ubuntu', sans-serif;
}
