/** Planning Poker Styles - Dark Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #e5e5e5;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 15vh;
}

.wizard-container {
    background: #252836;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Font Size Standards: Title (Large), Text (Medium 16px), Tooltips/Messages (Small 14px) */
h1 {
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
    font-size: 35px; /* Large - Title */
    font-weight: 700;
}

h2 {
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 30px; /* Large - Title */
    font-weight: 600;
}

h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 30px; /* Large - Title */
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 20px; /* Medium */
}

.step-indicator {
    text-align: center;
    color: #a0a0a0;
    margin-bottom: 30px;
    font-size: 18px; /* Small - Message */
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    font-size: 20px; /* Medium */
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"] {
    width: 100%;
    padding: 12px;
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    font-size: 20px;
    color: #ffffff;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #E92063;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="number"]::placeholder,
input[type="url"]::placeholder {
    color: #6b7280;
}

.button-group {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.button-group-center {
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #E92063;
    color: white;
    text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
    background: #ff5a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.4);
}

.btn-secondary {
    background: #2d3142;
    color: white;
    border: 1px solid #3d4154;
}

.btn-secondary:hover:not(:disabled) {
    background: #3d4154;
}

.btn-orange {
    background: #ff8c42; /* Orange color for active voting and reset */
    color: white;
}

.btn-orange:hover:not(:disabled) {
    background: #e67a33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.btn-grey {
    background: #6c757d; /* Grey color for disable voting */
    color: white;
}

.btn-grey:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 20px; /* Medium */
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-section {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 20px; /* Medium */
}

.progress-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 20px; /* Medium */
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #1a1d29;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar-fill {
    height: 100%;
    background: #E92063;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.feature-input-section {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.feature-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 20px; /* Medium */
}

.delete-feature {
    background: transparent;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 5px;
    font-size: 20px; /* Medium */
    transition: color 0.3s;
}

.delete-feature:hover {
    color: #E92063;
}

.feature-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.feature-name {
    flex: 2;
}

.feature-aha {
    flex: 2;
}

.link-container {
    margin: 30px 0;
}

.link-section {
    margin-bottom: 30px;
}

.link-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

.link-description {
    color: #a0a0a0;
    font-size: 20px; /* Medium */
    margin-bottom: 12px;
}

.link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.link-box input {
    flex: 1;
    background: #2d3142;
    border: 1px solid #3d4154;
    color: #ffffff;
    cursor: pointer;
}

.copy-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Medium */
    padding: 4px;
    border-radius: 4px;
}

.copy-icon:hover {
    color: #E92063;
    background: rgba(233, 32, 99, 0.1);
}

.voting-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.voting-controls .btn {
    margin: 0;
}

.average-section {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.average-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.average-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 20px;
    display: block;
}

.voting-results-section {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.results-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.voters-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.voters-table thead {
    border-bottom: 1px solid #3d4154;
}

.voters-table th {
    color: #ffffff;
    font-weight: 500;
    font-size: 20px;
    text-align: left;
    padding: 12px 0;
}

.voters-table tbody tr {
    border-bottom: 1px solid #3d4154;
}

.voters-table tbody tr:last-child {
    border-bottom: none;
}

.voters-table td {
    color: #ffffff;
    font-size: 20px; /* Medium */
    padding: 12px 0;
    vertical-align: middle;
}

.voters-table td:first-child {
    display: flex;
    align-items: center;
}

.voters-table td:last-child {
    color: #E92063;
    font-weight: 600;
    text-align: right;
}

.voters-section {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.voters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.voters-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    display: block;
}

.status-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.status-icon.status-joined {
    color: #a0a0a0;
    font-size: 20px; /* Medium */
}

.status-icon.status-voted {
    color: #4caf50;
    font-size: 20px; /* Medium */
}

.status-icon.status-skipped {
    color: #ff9800;
    font-size: 20px; /* Medium */
}

.member-email {
    color: #ffffff;
}

.vote-value {
    color: #E92063;
    font-weight: 600;
}

.average-display {
    font-size: 20px; /* Medium - same as buttons */
    font-weight: 500;
    color: #E92063;
    margin: 0;
    margin-left: 8px; /* 8px to the left */
    padding: 8px 12px;
    border: 1px solid #3d4154;
    border-radius: 4px;
    cursor: text;
    min-width: 60px;
    display: inline-block;
    background: transparent;
    text-align: center;
    line-height: 1.5;
    vertical-align: middle;
}

.average-display[contenteditable="true"]:hover {
    border-color: #E92063;
    background: rgba(255, 107, 157, 0.1);
}

.average-display[contenteditable="true"]:focus {
    outline: none;
    border-color: #E92063;
    background: rgba(255, 107, 157, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2);
}

.member-status {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.member-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.member-status-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-vote-count {
    color: #a0a0a0;
    font-size: 18px;
}

.member-status ul,
.voting-results-section ul {
    list-style: none;
}

.member-status li,
.voting-results-section li {
    padding: 12px 0;
    border-bottom: 1px solid #3d4154;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.member-status li:last-child,
.voting-results-section li:last-child {
    border-bottom: none;
}

.member-status li.empty {
    text-align: center;
    color: #a0a0a0;
    padding: 20px;
}

.actions {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.actions .btn {
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: #252836;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 4px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid #3d4154;
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.error-message {
    color: #E92063;
    margin-top: 10px;
    font-size: 18px;
}

.info-message {
    background: rgba(255, 107, 157, 0.1);
    color: #E92063;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.voting-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-display-box {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.member-header {
    margin-bottom: 30px;
}

.vote-btn {
    padding: 20px;
    font-size: 20px; /* Medium */
    font-weight: bold;
    background: #2d3142;
    color: white;
    border: 1px solid #3d4154;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:hover:not(:disabled) {
    background: #3d4154;
    border-color: #E92063;
    transform: scale(1.05);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vote-btn.skip {
    background: #2d3142;
    border-color: #3d4154;
}

.vote-btn.skip:hover:not(:disabled) {
    background: #3d4154;
    border-color: #E92063;
}

.voted-message {
    background: #2d3142;
    border: 1px solid #3d4154;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.voted-message p {
    color: #ffffff;
    margin-bottom: 10px;
}

.voted-message .vote-value {
    color: #E92063;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #2d3142;
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #3d4154;
    color: #ffffff;
}

table th {
    background: #1a1d29;
    font-weight: 600;
    color: #ffffff;
}

table tr:last-child td {
    border-bottom: none;
}

.info {
    text-align: center;
    color: #a0a0a0;
    margin-top: 20px;
    font-size: 18px;
}

.aha-link {
    color: #E92063;
    text-decoration: none;
    font-size: 20px; /* Medium */
}

.aha-link:hover {
    text-decoration: underline;
}

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/* Icons using Unicode/Emoji as fallback */
.icon-play::before {
    content: "▶";
}

.icon-pause::before {
    content: "⏸";
}

.icon-reset::before {
    content: "↻";
}

.icon-plus::before {
    content: "+";
}

.icon-copy::before {
    content: "📋";
    font-size: 20px; /* Medium */
}

.icon-arrow::before {
    content: "→";
}

.icon-users::before {
    content: "👥";
}

.icon-trash::before {
    content: "🗑";
    font-size: 25px;
}

.icon-download::before {
    content: "⬇";
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #E92063;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #E92063 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.field-error {
    border-color: #E92063 !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2) !important;
}

.error-tooltip {
    position: absolute;
    background-color: #E92063;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    z-index: 1000;
    font-size: 18px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.error-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 20px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #E92063 transparent;
}

/* Step indicator circles */
.step-indicator-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d3142;
    border: 2px solid #3d4154;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.step-circle.active {
    background: #E92063;
    border-color: #E92063;
    color: #ffffff;
}

/* Dotted line between circles */
.step-circle::after {
    content: '';
    position: absolute;
    left: calc(100% + 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 0;
    border-top: 2px dotted #3d4154;
    z-index: 1;
}

.step-circle:last-child::after {
    display: none;
}

/* Add Feature Circle */
.add-feature-circle {
    border: 2px dotted #3d4154 !important;
    background: transparent !important;
    color: #a0a0a0;
    margin-left: 0; /* No margin, dotted line will connect */
}

/* Dotted line before add feature circle */
.add-feature-circle::before {
    content: '';
    position: absolute;
    right: calc(100% + 1px);
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 0;
    border-top: 2px dotted #3d4154;
    z-index: 1;
}

.add-feature-circle:hover {
    border-color: #E92063 !important;
    color: #E92063;
    transform: scale(1.1);
}

.add-feature-circle:hover::before {
    border-color: #E92063;
}

.add-feature-circle::after {
    display: none; /* No dotted line after add feature circle */
}

.add-feature-circle .icon-plus {
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
}

/* Link actions at bottom */
.link-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3d4154;
}

.link-action {
    color: #a0a0a0; /* Not bright - muted gray */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px; /* Medium */
    transition: color 0.3s;
    cursor: pointer;
}

.link-action:hover {
    color: #c0c0c0; /* Slightly brighter on hover, but still muted */
}

.link-action .icon {
    font-size: 20px; /* Medium */
    opacity: 0.7; /* Make icons less bright */
}

/* Admin header */
.admin-header {
    margin-bottom: 20px;
}
