:root {
    --kasm-blue: #23aeff;
    --kasm-dark-blue: #0d2c40;
    --kasm-white: #ffffff;
    --kasm-gray: #f4f6f8;
    --text-color: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--kasm-gray);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--kasm-white);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: var(--kasm-dark-blue);
    text-decoration: none;
}

.logo img {
    vertical-align: middle;
}

nav a {
    text-decoration: none;
    color: var(--kasm-dark-blue);
    margin-left: 20px;
    font-weight: 500;
}

nav a:hover {
    color: var(--kasm-blue);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5em;
    color: var(--kasm-dark-blue);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--kasm-white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--kasm-blue);
}

.card h2 {
    color: var(--kasm-dark-blue);
    margin-top: 0;
}

.card p {
    color: #555;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    background-color: var(--kasm-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    text-align: center;
}

.btn:hover {
    background-color: #1a9bdc;
}

/* Agent Page Styles */
.agent-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px); /* Adjust based on header */
}

.agent-info {
    background: var(--kasm-white);
    padding: 20px 40px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.agent-info h1 {
    margin-top: 0;
    color: var(--kasm-dark-blue);
}

.agent-details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.description, .instructions {
    flex: 1;
    min-width: 300px;
}

.instructions h3 {
    color: var(--kasm-blue);
    margin-top: 0;
}

.iframe-container {
    flex-grow: 1;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.launch-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.launch-btn-large {
    display: inline-block;
    background-color: var(--kasm-blue);
    color: white;
    font-size: 1.5em;
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.launch-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background-color: #1a9bdc;
}

.overlay-note {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9em;
    border-left: 4px solid #ffeeba;
}

footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9em;
}
