* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

.navbar {
    background-color: #2c3e50;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 50px;
}

    .navbar a {
        color: white;
        text-decoration: none;
        padding: 0 20px;
        font-size: 14px;
        line-height: 50px;
        display: inline-block;
    }

        .navbar a:hover {
            background-color: #34495e;
        }

.pageWrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.formContainer {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 650px;
}

.formContainerWide {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 750px;
}

    .formContainer h1,
    .formContainerWide h1 {
        font-size: 24px;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .formContainer p.subText,
    .formContainerWide p.subText {
        color: #777;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .formContainer label,
    .formContainerWide label {
        display: block;
        font-size: 13px;
        font-weight: bold;
        color: #555;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .formContainer input[type="text"],
    .formContainer input[type="password"],
    .formContainer textarea,
    .formContainer select,
    .formContainerWide input[type="text"],
    .formContainerWide input[type="password"],
    .formContainerWide textarea,
    .formContainerWide select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .formContainer textarea,
    .formContainerWide textarea {
        resize: vertical;
        min-height: 80px;
    }


.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.mainContent {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .mainContent h2 {
        color: #2c3e50;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #eee;
    }

.dashboardCard {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

    .dashboardCard h2 {
        border: none;
        font-size: 26px;
        margin-bottom: 10px;
    }

.cardAdmin {
    border: 2px solid #2c3e50;
}

.cardBuilder {
    border: 2px solid #27ae60;
}

.cardSurveyor {
    border: 2px solid #2980b9;
}

.cardGuest {
    border: 1px solid #ddd;
}

.cardTitleAdmin {
    color: #2c3e50;
}

.cardTitleBuilder {
    color: #27ae60;
}

.cardTitleSurveyor {
    color: #2980b9;
}

.cardWelcomeText {
    color: #555;
    margin-top: 10px;
}

.cardWelcomeTextAlt {
    color: #666;
    margin-top: 10px;
}

.cardBtnRow {
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 5px;
    text-decoration: none !important;
    font-size: 14px;
    color: white !important;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.btnDark {
    background-color: #2c3e50;
}

.btnBlue {
    background-color: #2980b9;
}

.btnGreen {
    background-color: #27ae60;
}

.btnRed {
    background-color: #c0392b;
}

.btnOrange {
    background-color: #e67e22;
}

.btnSmall {
    padding: 5px 12px;
    font-size: 12px;
}

.btn:hover {
    opacity: 0.85;
    color: white !important;
}

.questionBlock {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}

    .questionBlock p {
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 15px;
        font-size: 15px;
    }

.resultBlock {
    background-color: #2c3e50;
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

    .resultBlock h2 {
        color: white;
        border: none;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .resultBlock p {
        font-size: 16px;
        margin-bottom: 20px;
    }

table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: #2c3e50;
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f0f4f8;
}

.sectionDivider {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.summaryCardRow {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.summaryCard {
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 140px;
    color: white;
}

.summaryCardDark {
    background-color: #2c3e50;
}

.summaryCardGreen {
    background-color: #27ae60;
}

.summaryCardBlue {
    background-color: #2980b9;
}

.summaryCardNumber {
    font-size: 32px;
    font-weight: bold;
}

.summaryCardLabel {
    font-size: 13px;
    margin-top: 5px;
}

/* ── Analysis bar chart ──────────────────────────────── */
.analysisBarWrap {
    background-color: #eee;
    border-radius: 4px;
    height: 20px;
    width: 100%;
    margin-top: 4px;
}

.analysisBar {
    background-color: #2980b9;
    height: 20px;
    border-radius: 4px;
    min-width: 2px;
}

.analysisQuestionBlock {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.analysisQuestionTitle {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 15px;
}

.analysisQuestionType {
    font-weight: normal;
    font-size: 12px;
    color: #999;
}

.analysisOptionRow {
    margin-bottom: 12px;
}

.analysisOptionLabel {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.analysisOptionCount {
    color: #2980b9;
    font-weight: bold;
}

.responseLogHeading {
    color: #2c3e50;
    margin-top: 25px;
    margin-bottom: 10px;
    border-top: 2px solid #eee;
    padding-top: 15px;
}


.selectorRow {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selectorLabel {
    font-weight: bold;
    font-size: 13px;
    color: #555;
}

.selectorDropdown {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    min-width: 280px;
}


.addUserBox {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

    .addUserBox h3 {
        color: #2c3e50;
        margin-bottom: 15px;
    }

.addUserTable {
    border: none;
    width: 100%;
}

    .addUserTable tr {
        background: none;
    }

    .addUserTable td {
        border: none;
        padding: 6px;
    }

.addUserTableLabelCell {
    width: 110px;
}

.addUserFieldLabel {
    font-weight: bold;
    font-size: 13px;
    color: #555;
}

.addUserInput {
    width: 220px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.addUserInputNarrow {
    width: 160px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.addUserInputWide {
    width: 180px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
}

.addUserBtnRow {
    margin-top: 12px;
}


.badgePublished {
    background: #27ae60;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.badgeDraft {
    background: #95a5a6;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.badgeAnon {
    background: #2980b9;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.badgePublic {
    background: #e67e22;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.topActionRow {
    margin-bottom: 15px;
}

.questionEntry {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.questionEntryTitle {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
}

.tfNote {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
}

.addQuestionRow {
    margin-bottom: 20px;
}

.surveyDescText {
    color: #777;
    font-size: 13px;
    margin-bottom: 15px;
}

.surveyDescSubText {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

.credentialsNote {
    font-size: 13px;
    margin-top: 20px;
    color: #555;
}

.credentialsList {
    font-size: 13px;
    line-height: 1.6;
    margin-top: 5px;
    margin-left: 18px;
    color: #555;
}


.loginBtnRow {
    margin-top: 20px;
}

.loginMsgRow {
    margin-top: 10px;
}

.questionEntryTextarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.questionEntrySelect {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.questionEntryInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 6px;
}

.questionEntryRemoveRow {
    text-align: right;
    margin-top: 10px;
}

.messageLabel {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
}
