.waihlomat-app {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    /* removed top margin as it might interfere with theme */
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Footer */
.waihlomat-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.waihlomat-footer a {
    color: #999;
    text-decoration: underline;
    font-size: 0.9em;
    transition: color 0.2s;
}

.waihlomat-footer a:hover {
    color: #FF6B35;
}

/* Header */
.waihlomat-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.waihlomat-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.waihlomat-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.waihlomat-subtitle {
    margin: 0;
    font-size: 1em;
    opacity: 0.9;
    font-weight: 300;
}

.waihlomat-step {
    display: none;
    /* Hidden by default */
}

.waihlomat-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Thesis Card */
.waihlomat-thesis-card {
    background: #FFF4E6;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
    text-align: center;
}

.waihlomat-thesis-category {
    text-transform: uppercase;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.waihlomat-thesis-statement {
    font-size: 1.5em;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #333;
}

/* Thesis Navigation */
.waihlomat-thesis-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.waihlomat-btn-link {
    background: #FF6B35;
    color: white;
    border: none;
    font-size: 0.8em;
    font-weight: normal;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.waihlomat-btn-link:hover {
    background: #FF8C42;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.waihlomat-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.waihlomat-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.waihlomat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-agree {
    background-color: #2ecc71;
    color: white;
}

.btn-neutral {
    background-color: #95a5a6;
    color: white;
}

.btn-disagree {
    background-color: #e74c3c;
    color: white;
}

.btn-skip {
    background-color: transparent;
    color: #999;
    text-decoration: underline;
    font-size: 0.9em;
    margin-top: 10px;
    display: block;
    width: 100%;
}

/* Weight Option */
.waihlomat-weight-option {
    margin-top: 20px;
    text-align: center;
}

.waihlomat-weight-option label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: #555;
}

.waihlomat-weight-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Candidate Cards for Sliders */
.waihlomat-candidate-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #FFF4E6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.candidate-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.candidate-info {
    flex: 1;
}

.candidate-info h3 {
    margin: 0 0 5px;
}

.candidate-info p {
    margin: 0 0 10px;
    color: #777;
    font-size: 0.9em;
}

.slider-group {
    margin-top: 10px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.waihlomat-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
}

.waihlomat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

/* Results */
.result-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #FFF4E6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.result-bar-container {
    flex-grow: 1;
    background: #eee;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.result-bar {
    height: 100%;
    background: #3498db;
    /* Default Blue */
    width: 0%;
    transition: width 1s ease-out;
}

.result-percentage {
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .waihlomat-candidate-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Modal Overlay */
.waihlomat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

.waihlomat-modal {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.waihlomat-modal-header h3 {
    margin: 0;
}

.waihlomat-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.waihlomat-modal-close:hover {
    color: #333;
}

.waihlomat-modal-body {
    padding: 20px;
}

/* Details Table */
.waihlomat-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.waihlomat-details-table thead {
    background: #f5f5f5;
}

.waihlomat-details-table th,
.waihlomat-details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.waihlomat-details-table th {
    font-weight: bold;
    color: #555;
}

.waihlomat-details-table tbody tr:hover {
    background: #f9f9f9;
}

/* Details Button */
.btn-details {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-details:hover {
    background-color: #2980b9;
}

/* Social Media Share */
.waihlomat-share-section {
    margin-top: 30px;
    padding: 20px;
    background: #FFF4E6;
    border-radius: 10px;
    text-align: center;
}

.waihlomat-share-section h4 {
    margin: 0 0 12px 0;
    font-size: 1em;
}

.waihlomat-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.waihlomat-share-btn {
    padding: 8px 16px;
    font-size: 0.85em;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.waihlomat-share-btn .share-icon {
    font-size: 1.1em;
}

.twitter-btn {
    background-color: #1DA1F2;
}

.twitter-btn:hover {
    background-color: #1a8cd8;
    transform: translateY(-2px);
}

.facebook-btn {
    background-color: #1877F2;
}

.facebook-btn:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.screenshot-btn {
    background-color: #9b59b6;
}

.screenshot-btn:hover {
    background-color: #8e44ad;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .waihlomat-share-buttons {
        flex-direction: column;
    }

    .waihlomat-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Primary Button (Orange) */
.waihlomat-btn.btn-primary {
    background: #FF6B35;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1.1em;
    padding: 14px 28px;
    border-radius: 30px;
}

.waihlomat-btn.btn-primary:hover {
    background: #FF8C42;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}