/* --- Global & Base Styles --- */
body {
    font-family: "gg sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2c2f33;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

input, button {
    font-family: inherit !important;
}

/* --- Header & Navigation --- */
header {
    background-color: #23272a;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left, .header-right { flex: 1; }
.header-title { font-weight: 500; font-size: 1.1em; color: #ffffff; }
.header-right { display: flex; justify-content: flex-end; }

/* --- Main Layout --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.builder, .preview {
    background-color: #36393f;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Builder Inputs --- */
.builder input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #202225;
    color: #fff;
    outline: none;
}

.builder input:focus { border: 1px solid #5865F2; }

.builder label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #b9bbbe;
    text-transform: uppercase;
}

.input-group {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-end;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
}

/* --- Buttons --- */
.builder-btn, .builder-btn-red {
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    color: white;
    text-decoration: none;
    height: 38px;
    box-sizing: border-box;
}

.builder-btn { background-color: #5865F2; }
.builder-btn:hover { background-color: #4752c4; }

.builder-btn-red { background-color: #ed4245; }
.builder-btn-red:hover { background-color: #c0392b; }

/* --- Login Page --- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    background-color: #2f3136;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.login-card input { margin-bottom: 15px; }

/* --- Tables & Links --- */
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #202225; font-size: 14px; }
th { color: #b9bbbe; font-weight: 600; background-color: #23272a; text-transform: uppercase; font-size: 12px;}

a.link { color: #00A8FC; text-decoration: none; }
a.link:hover { text-decoration: underline; }

/* --- Utilities --- */
.error-banner {
    background-color: rgba(237, 66, 69, 0.1); 
    border: 1px solid #ed4245; 
    color: #fff; 
    padding: 12px; 
    border-radius: 8px; 
    font-weight: 500;
}