/* ==============================================
   ZÁKLADNÍ RESET A GLOBAL STYLES
   ============================================== */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a, .btn-link {
    color: #006bb7;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.content {
    padding-top: 1.1rem;
}

/* ==============================================
   UNIVERZÁLNÍ BUTTON SYSTEM
   ============================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
    user-select: none;
    white-space: nowrap;
    gap: 6px;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn:disabled, .btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    min-width: 34px;
    min-height: 34px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
}

/* Button Colors */
.btn-primary {
    color: #fff;
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    color: #fff;
    background-color: #5a6fd8;
    border-color: #5764d6;
}

.btn-secondary {
    color: #fff;
    background-color: #a0aec0;
    border-color: #a0aec0;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #8c9bb3;
    border-color: #8592a6;
}

.btn-success {
    color: #fff;
    background-color: #48bb78;
    border-color: #48bb78;
}

.btn-success:hover {
    color: #fff;
    background-color: #38a169;
    border-color: #2f855a;
}

.btn-danger {
    color: #fff;
    background-color: #f56565;
    border-color: #f56565;
}

.btn-danger:hover {
    color: #fff;
    background-color: #e53e3e;
    border-color: #e53e3e;
}

.btn-info {
    color: #fff;
    background-color: #4299e1;
    border-color: #4299e1;
}

.btn-info:hover {
    color: #fff;
    background-color: #3182ce;
    border-color: #2c5aa0;
}

.btn-warning {
    color: #fff;
    background-color: #ed8936;
    border-color: #ed8936;
}

.btn-warning:hover {
    color: #fff;
    background-color: #dd6b20;
    border-color: #c05621;
}

/* Outline Buttons */
.btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #667eea;
    border-color: #667eea;
}

.btn-outline-secondary {
    color: #a0aec0;
    border-color: #a0aec0;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #a0aec0;
    border-color: #a0aec0;
}

.btn-outline-danger {
    color: #f56565;
    border-color: #f56565;
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #f56565;
    border-color: #f56565;
}

/* Button Groups */
.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    gap: 2px;
}

.btn-group > .btn {
    position: relative;
    flex: 0 1 auto;
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */
.form-control {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select {
    display: block;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    padding-right: 32px;
}

.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ==============================================
   BADGES
   ============================================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.badge.bg-primary { background-color: #667eea !important; color: white; }
.badge.bg-success { background-color: #48bb78 !important; color: white; }
.badge.bg-info { background-color: #4299e1 !important; color: white; }
.badge.bg-warning { background-color: #ed8936 !important; color: white; }
.badge.bg-danger { background-color: #f56565 !important; color: white; }
.badge.bg-secondary { background-color: #a0aec0 !important; color: white; }

/* ==============================================
   SURVEY PAGE SPECIFIC STYLES
   ============================================== */
.data-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.section-info {
    display: flex;
    align-items: center;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.section-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.section-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #48bb78;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.add-btn:hover {
    background: #38a169;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.empty-state {
    padding: 30px 25px;
    text-align: center;
    color: #718096;
}

.user-data-preview {
    padding: 20px 25px;
}

.user-data-preview h4 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #2d3748;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.data-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.data-item strong {
    font-size: 1rem;
    color: #343a40;
    flex-grow: 1;
    margin-right: 15px;
}

.item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
}

.item-actions .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Section Icon Colors */
.data-section:nth-child(1) .section-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.data-section:nth-child(2) .section-icon { background: linear-gradient(135deg, #4299e1 0%, #2b77e6 100%); }
.data-section:nth-child(3) .section-icon { background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); }
.data-section:nth-child(4) .section-icon { background: linear-gradient(135deg, #38a169 0%, #2f855a 100%); }
.data-section:nth-child(5) .section-icon { background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%); }
.data-section:nth-child(6) .section-icon { background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%); }

/* ==============================================
   ADMIN DASHBOARD STYLES
   ============================================== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.admin-header p {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.admin-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 20px;
}

.logout-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: white;
}

.header-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 5px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-content p {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
}

.stat-content small {
    color: #718096;
    font-size: 0.875rem;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.25rem;
}

.action-content h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.action-content p {
    margin: 0 0 20px 0;
    color: #718096;
    line-height: 1.6;
}

/* Admin Cards */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2, .card-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.success-card .card-header {
    background: #d4edda;
    color: #155724;
}

/* Admin Forms */
.admin-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Generated Link */
.generated-link {
    padding: 20px;
}

.link-display {
    margin-bottom: 20px;
}

.link-display label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
}

.link-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.link-container code {
    flex: 1;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    min-width: 0;
}

.link-info p {
    margin: 5px 0;
    color: #4a5568;
}

/* Tokens Table */
.tokens-table {
    padding: 20px;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

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

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.token-display {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-controls .form-select {
    min-width: 150px;
    margin: 0;
}

/* ==============================================
   STATES AND UTILITIES
   ============================================== */
.loading-state, .empty-state {
    padding: 40px;
    text-align: center;
    color: #718096;
}

.loading-state i, .empty-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.text-success { color: #48bb78 !important; }
.text-muted { color: #718096 !important; }
.text-warning { color: #ed8936 !important; }
.text-danger { color: #f56565 !important; }
.text-primary { color: #667eea !important; }

.bg-primary { background-color: #667eea !important; }
.bg-success { background-color: #48bb78 !important; }
.bg-info { background-color: #4299e1 !important; }
.bg-warning { background-color: #ed8936 !important; }
.bg-danger { background-color: #f56565 !important; }
.bg-secondary { background-color: #a0aec0 !important; }

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */
@media (max-width: 768px) {
    .admin-container {
        padding: 15px;
    }
    
    .admin-header {
        padding: 20px;
    }
    
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .section-info {
        justify-content: center;
        text-align: center;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .item-actions {
        flex-direction: row;
        gap: 4px;
        justify-content: center;
    }
    
    .data-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        text-align: center;
    }
    
    .data-item strong {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .link-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-container code {
        margin-bottom: 10px;
    }
}

/* ==============================================
   BLAZOR ERROR BOUNDARY
   ============================================== */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA6IDIzNi4wODkgOTMuODA7MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2IDYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ==============================================
   ADMIN OVERVIEW SPECIFIC STYLES
   ============================================== */

/* Users Overview */
.users-overview {
    padding: 20px;
}

.user-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-card.expanded {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.user-header {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.user-header:hover {
    background: #f8f9fa;
}

.user-info h3 {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.user-email {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.user-organization {
    margin: 0;
    color: #718096;
    font-size: 0.875rem;
    font-style: italic;
}

.user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-stats .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.expand-icon {
    color: #718096;
    font-size: 1.2rem;
    margin-left: auto;
}

.user-details {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

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

.data-section h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.data-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table-sm th,
.table-sm td {
    padding: 8px 12px;
    font-size: 0.875rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    padding-right: 40px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #718096;
    background: white;
    border-radius: 8px;
}

.no-data i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Activity List */
.activity-list {
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4a5568;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.activity-content small {
    color: #718096;
}

/* Unauthorized */
.unauthorized {
    text-align: center;
    padding: 100px 20px;
    color: #718096;
}

.unauthorized h2 {
    color: #2d3748;
    margin-bottom: 15px;
}

/* ==============================================
   ICON FIXES FOR CHECK CIRCLES
   ============================================== */

/* Fix for FontAwesome check circle icons */
.fas.fa-check-circle,
.far.fa-check-circle {
    color: #48bb78 !important;
}

/* Ensure proper icon styling */
.user-data-preview h4 .fas.fa-check-circle {
    color: #48bb78 !important;
    margin-right: 8px;
}

/* ==============================================
   RESPONSIVE UPDATES FOR ADMIN OVERVIEW
   ============================================== */

@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-stats {
        width: 100%;
    }
    
    .users-overview {
        padding: 15px;
    }
    
    .user-details {
        padding: 15px;
    }
    
    .data-table {
        overflow-x: auto;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* ==============================================
   SURVEY PAGE SPECIFIC BUTTON FIXES
   ============================================== */

/* Fix for SurveyPage action buttons */
.data-section .item-actions .btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
}

.data-section .item-actions .btn i {
    font-size: 0.875rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* Specific fixes for outline buttons in SurveyPage */
.data-section .btn-outline-primary {
    color: #667eea !important;
    border-color: #667eea !important;
    background-color: transparent !important;
}

.data-section .btn-outline-primary:hover {
    color: #fff !important;
    background-color: #667eea !important;
    border-color: #667eea !important;
}

.data-section .btn-outline-danger {
    color: #f56565 !important;
    border-color: #f56565 !important;
    background-color: transparent !important;
}

.data-section .btn-outline-danger:hover {
    color: #fff !important;
    background-color: #f56565 !important;
    border-color: #f56565 !important;
}

/* Fix for check circle icons in SurveyPage */
.data-section .fas.fa-check-circle,
.data-section .far.fa-check-circle {
    color: #48bb78 !important;
    font-size: 1rem !important;
}

.data-section .user-data-preview h4 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 15px 0 !important;
    font-size: 1.1rem !important;
    color: #2d3748 !important;
}

.data-section .user-data-preview h4 i.fa-check-circle {
    color: #48bb78 !important;
    font-size: 1rem !important;
    margin-right: 0 !important;
}

/* Fix for data items layout */
.data-section .data-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    margin-bottom: 8px !important;
}

.data-section .data-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-color: #dee2e6 !important;
}

.data-section .data-item strong {
    font-size: 1rem !important;
    color: #343a40 !important;
    flex-grow: 1 !important;
    margin-right: 15px !important;
}

.data-section .item-actions {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
}

/* Fix for data list */
.data-section .data-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Fix for user data preview container */
.data-section .user-data-preview {
    padding: 20px 25px !important;
    background: transparent !important;
}

/* Fix for empty state */
.data-section .empty-state {
    padding: 30px 25px !important;
    text-align: center !important;
    color: #718096 !important;
}

/* Fix for section icons to ensure they keep their colors */
.data-section:nth-child(1) .section-icon { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; 
}
.data-section:nth-child(2) .section-icon { 
    background: linear-gradient(135deg, #4299e1 0%, #2b77e6 100%) !important; 
}
.data-section:nth-child(3) .section-icon { 
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%) !important; 
}
.data-section:nth-child(4) .section-icon { 
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%) !important; 
}
.data-section:nth-child(5) .section-icon { 
    background: linear-gradient(135deg, #805ad5 0%, #553c9a 100%) !important; 
}
.data-section:nth-child(6) .section-icon { 
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%) !important; 
}

/* ==============================================
   MODAL AND TOAST FIXES FOR SURVEY PAGE
   ============================================== */

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toast Messages */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.toast-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
    color: inherit;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==============================================
   SIMPLE CHECKMARK FIX - SIDE BY SIDE
   ============================================== */

/* Override all previous rules and keep it simple */
.data-section .user-data-preview h4.inline-check {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: #2d3748 !important;
    text-align: left !important;
    border-bottom: none !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

/* Icon styling - simple and clean */
.data-section .user-data-preview h4.inline-check i.fa-check-circle {
    color: #48bb78 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* Text styling - simple and clean */
.data-section .user-data-preview h4.inline-check span {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 0 !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

/* Remove any conflicting styles */
.data-section .user-data-preview h4:not(.inline-check) {
    /* Reset any unwanted styles */
    display: block !important;
    text-align: left !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}

/* Keep container simple */
.data-section .user-data-preview {
    padding: 20px 25px !important;
    background: transparent !important;
}

/* ==============================================
   CENTERED CHECKMARK - UPROSTŘED SEKCE
   ============================================== */

/* Centered checkmark and text in the middle of section */
.data-section .user-data-preview h4.inline-check {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: #2d3748 !important;
    text-align: center !important;
    border-bottom: none !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

/* Icon styling - simple and clean */
.data-section .user-data-preview h4.inline-check i.fa-check-circle {
    color: #48bb78 !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* Text styling - simple and clean */
.data-section .user-data-preview h4.inline-check span {
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 0 !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

/* Container should be centered */
.data-section .user-data-preview {
    padding: 20px 25px !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* ==============================================
   FIXED DATA ITEMS - LEFT ALIGNED TEXT
   ============================================== */

/* Keep checkmark centered but data items left-aligned */
.data-section .user-data-preview h4.inline-check {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: #2d3748 !important;
    text-align: center !important;
    border-bottom: none !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
}

/* Data items should be left-aligned like before */
.data-section .data-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.data-section .data-item strong {
    font-size: 1rem !important;
    color: #343a40 !important;
    flex-grow: 1 !important;
    margin-right: 15px !important;
    text-align: left !important;
}

/* Container should NOT center the data list */
.data-section .user-data-preview {
    padding: 20px 25px !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.data-section .data-list {
    margin-top: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* ==============================================
   ADMIN TOKEN MANAGEMENT SPECIFIC STYLES
   ============================================== */

/* Export buttons spacing */
.tokens-table .btn-group .btn {
    margin-right: 2px;
}

.tokens-table .btn-group .btn:last-child {
    margin-right: 0;
}

/* Make the action buttons more compact */
.tokens-table .btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-width: 32px;
    min-height: 32px;
}

/* Excel export button styling */
.tokens-table .btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.tokens-table .btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Token display styling */
.token-display {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

/* Status badge improvements */
.tokens-table .badge {
    font-size: 0.7rem;
    padding: 3px 6px;
}

/* Responsive table improvements */
@media (max-width: 1200px) {
    .tokens-table {
        font-size: 0.875rem;
    }
    
    .tokens-table th,
    .tokens-table td {
        padding: 8px 6px;
    }
    
    .tokens-table .btn-sm {
        padding: 3px 6px;
        font-size: 0.7rem;
        min-width: 28px;
        min-height: 28px;
    }
}

/* ==============================================
   ADMIN OVERVIEW USER ACTIONS
   ============================================== */

.user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.user-actions .btn {
    padding: 4px 8px;
    min-width: 32px;
    min-height: 32px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 15px 20px;
    transition: background-color 0.2s ease;
}

.user-header:hover {
    background-color: #f8f9fa;
}

/* ==============================================
   PROGRESS BAR STYLES FOR QUESTIONNAIRES
   ============================================== */

.questionnaire-container .progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.questionnaire-container .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #ff9500 100%) !important;
    border-radius: 4px;
    transition: width 0.3s ease;
    min-width: 2px;
}

/* Progress text styling */
.questionnaire-header div[style*="margin-top: 10px"] {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-top: 10px !important;
    font-size: 0.9rem !important;
    opacity: 0.9 !important;
}

/* Ensure consistent progress bar styling across all questionnaires */
.questionnaire-header .progress-bar {
    width: 100% !important;
    height: 8px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    margin-top: 20px !important;
}

.questionnaire-header .progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #ffffff 0%, #ff9500 100%) !important;
    border-radius: 4px !important;
    transition: width 0.3s ease !important;
    min-width: 2px !important;
}
