/* CSS Custom Properties for theming */
:root {
    --theme-primary: #667eea;
    --theme-secondary: #764ba2;
    --theme-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --theme-primary-rgb: 102, 126, 234;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--theme-gradient);
    min-height: 100vh;
    padding: 10px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: var(--theme-gradient);
    color: white;
    padding: 15px;
}

header h1 {
    margin-bottom: 12px;
    font-size: 1.5em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 14px;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: bold;
}

main {
    padding: 15px;
}

@media (max-width: 479px) {
    main {
        padding: 12px;
    }
}

/* Mobile-first responsive design */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }
    
    .container {
        max-width: 1200px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    header {
        padding: 20px 30px;
    }
    
    header h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    nav {
        gap: 15px;
    }
    
    nav a {
        padding: 8px 16px;
        font-size: 16px;
        min-height: auto;
    }
    
    main {
        padding: 30px;
    }
}

/* Generate Page */
.generate-section {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .generate-section {
        max-width: 600px;
    }
}

.generate-section h2 {
    margin-bottom: 20px;
    color: #333;
}

/* Collapsible Sections */
.collapsible-section {
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: #f9f9f9;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    min-height: 44px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.section-header:hover {
    background: #f0f0f0;
}

.section-title {
    flex: 1;
}

.section-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-gradient);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.section-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background: white;
}

.section-content.expanded {
    max-height: none;
    height: auto;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    overflow: visible;
}

.section-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}

/* Form Row for side-by-side inputs */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 480px) {
    .form-row {
        flex-direction: row;
        gap: 15px;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

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

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

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
    resize: vertical;
    min-height: 80px;
}

.form-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-height: 44px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--theme-primary);
}

/* Password Input with Toggle */
.password-input-wrapper {
    display: flex;
    gap: 10px;
}

.password-input-wrapper input {
    flex: 1;
}

.toggle-password-btn {
    padding: 14px 16px;
    min-width: 70px;
    width: auto;
    font-size: 14px;
    background: #f0f0f0;
    color: #555;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.toggle-password-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    cursor: pointer;
}

/* Photo Upload Styles */
.photo-upload-group {
    margin-bottom: 25px;
}

.photo-upload-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 32px;
    color: #ccc;
}

.photo-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photo-upload-btn {
    display: inline-block;
    background: var(--theme-gradient);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: none;
    min-height: 40px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.photo-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.3);
}

.photo-remove-btn {
    background: #f5f5f5;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #ddd;
    min-height: 36px;
}

.photo-remove-btn:hover {
    background: #eee;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    cursor: pointer;
    accent-color: var(--theme-primary);
}

.checkbox-label span {
    color: #555;
}

/* Profile Header Styles */
.profile-header {
    background: var(--theme-gradient);
    color: white;
    padding: 25px 20px;
    text-align: center;
    margin: -15px -15px 20px -15px;
    border-radius: 0;
}

@media (min-width: 768px) {
    .profile-header {
        margin: -30px -30px 30px -30px;
        padding: 35px 30px;
    }
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 14px;
    opacity: 0.85;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

button {
    background: var(--theme-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
    width: 100%;
}

@media (min-width: 768px) {
    button {
        width: auto;
        padding: 12px 24px;
        min-height: auto;
    }
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

button:active {
    transform: translateY(0);
}

.danger-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.danger-button:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.generated-codes {
    margin-top: 40px;
}

.generated-codes h3 {
    margin-bottom: 20px;
    color: #333;
}

#codes-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 480px) {
    #codes-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.code-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: #f9f9f9;
}

@media (min-width: 768px) {
    .code-item {
        padding: 15px;
    }
}

.code-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.code-item p {
    font-size: 14px;
    color: #666;
    word-break: break-all;
}

.code-item .code-type {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: var(--theme-gradient);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Main Page */
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 480px) {
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

.card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: box-shadow 0.3s;
}

@media (min-width: 768px) {
    .card {
        padding: 20px;
    }
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .card-header {
        flex-wrap: nowrap;
    }
    
    .card-header-right {
        gap: 10px;
    }
}

.card-content {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.card-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.card-content.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
}

.expand-button {
    background: var(--theme-gradient);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    .expand-button {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
}

.expand-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

.expand-button:active {
    transform: scale(0.95);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

@media (min-width: 768px) {
    .card-title {
        font-size: 18px;
    }
}

.card-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .card-status {
        padding: 4px 12px;
        font-size: 12px;
    }
}

.card-status.open {
    background: #d4edda;
    color: #155724;
}

.card-status.closed {
    background: #f8d7da;
    color: #721c24;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 30px 20px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .empty-message {
        padding: 40px;
        font-size: 18px;
    }
}

/* Instructions Container */
.instructions-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .instructions-container {
        padding: 30px 20px;
    }
}

@media (min-width: 768px) {
    .instructions-container {
        padding: 50px 40px;
    }
}

.instructions-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .instructions-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
}

@media (min-width: 768px) {
    .instructions-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
}

.instructions-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 0 5px;
}

@media (min-width: 480px) {
    .instructions-intro {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .instructions-intro {
        font-size: 18px;
        margin-bottom: 40px;
    }
}

.instructions-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px;
    padding-left: 15px;
    list-style: none;
    counter-reset: step-counter;
}

@media (min-width: 480px) {
    .instructions-steps {
        padding-left: 20px;
        margin-bottom: 40px;
    }
}

@media (min-width: 768px) {
    .instructions-steps {
        padding-left: 30px;
        margin-bottom: 50px;
    }
}

.instructions-steps li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding-left: 35px;
    position: relative;
    line-height: 1.5;
}

@media (min-width: 480px) {
    .instructions-steps li {
        margin-bottom: 25px;
        padding-left: 40px;
        line-height: 1.6;
    }
}

@media (min-width: 768px) {
    .instructions-steps li {
        margin-bottom: 30px;
        padding-left: 50px;
    }
}

.instructions-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    background: var(--theme-gradient);
    color: white;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .instructions-steps li::before {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        max-width: 28px;
        max-height: 28px;
        font-size: 14px;
        top: 0;
    }
}

@media (min-width: 768px) {
    .instructions-steps li::before {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        font-size: 16px;
    }
}

.instructions-steps li strong {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

@media (min-width: 480px) {
    .instructions-steps li strong {
        font-size: 17px;
        margin-bottom: 5px;
    }
}

@media (min-width: 768px) {
    .instructions-steps li strong {
        font-size: 19px;
        margin-bottom: 8px;
    }
}

.instructions-steps li p {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 480px) {
    .instructions-steps li p {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .instructions-steps li p {
        font-size: 16px;
    }
}

.instructions-cta {
    margin-top: 25px;
    padding: 0 5px;
}

@media (min-width: 480px) {
    .instructions-cta {
        margin-top: 30px;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .instructions-cta {
        margin-top: 40px;
    }
}

.cta-button {
    display: inline-block;
    background: var(--theme-gradient);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 44px;
    width: 100%;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .cta-button {
        width: auto;
        padding: 14px 32px;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .cta-button {
        padding: 12px 32px;
        min-height: auto;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Options Page */

/* Theme Settings */
.theme-settings-section {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.theme-settings-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.theme-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .theme-controls {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
}

.theme-control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-control-group label {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-wrapper input[type="color"] {
    width: 50px;
    height: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
    background: white;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

#color-hex-display {
    font-family: monospace;
    font-size: 14px;
    color: #666;
    min-width: 70px;
}

.cache-refresh-section {
    background: #f0f4ff;
    border: 2px solid var(--theme-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.refresh-cache-button {
    background: var(--theme-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(var(--theme-primary-rgb), 0.3);
}

.refresh-cache-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

.refresh-cache-button:active:not(:disabled) {
    transform: translateY(0);
}

.refresh-cache-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cache-refresh-hint {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .cache-refresh-section {
        padding: 25px 30px;
    }
    
    .refresh-cache-button {
        padding: 14px 28px;
        font-size: 17px;
    }
    
    .cache-refresh-hint {
        font-size: 15px;
        margin-top: 12px;
    }
}

.options-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.settings-list {
    margin-bottom: 30px;
}

.setting-item {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

@media (min-width: 768px) {
    .setting-item {
        flex-direction: row;
        align-items: center;
        padding: 20px;
        gap: 15px;
    }
}

.setting-item input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
}

@media (min-width: 768px) {
    .setting-item input[type="text"] {
        padding: 10px;
        min-height: auto;
        width: auto;
    }
}

.setting-item input[type="text"]:focus {
    outline: none;
    border-color: var(--theme-primary);
}

.setting-item .order-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.setting-item .order-controls button {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    width: auto;
}

@media (min-width: 768px) {
    .setting-item .order-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .setting-item .order-controls button {
        padding: 6px 12px;
        min-width: 40px;
        min-height: auto;
    }
}

.setting-item .toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.setting-item .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.setting-item .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.setting-item .toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-sizing: border-box;
}

.setting-item .toggle-switch input:checked + .toggle-slider {
    background-color: var(--theme-primary);
}

.setting-item .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.setting-item .order-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--theme-primary);
}

.setting-item .delete-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
    min-width: 80px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.setting-item .delete-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.5);
}

.setting-item .delete-button:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .setting-item .delete-button {
        padding: 8px 14px;
        min-height: auto;
        font-size: 13px;
    }
}

.version-footer {
    padding: 15px 15px 25px 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.version-text {
    font-size: 9px;
    color: #999;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

@media (min-width: 768px) {
    .version-footer {
        padding: 20px 20px 25px 20px;
    }
    
    .version-text {
        font-size: 10px;
    }
}

.attribution-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.attribution-text {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.attribution-text a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.attribution-text a:hover {
    color: var(--theme-secondary);
    text-decoration: underline;
}

.kofi-widget-container {
    margin-top: 20px;
    margin-bottom: 15px;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .attribution-footer {
        padding: 20px;
    }
    
    .attribution-text {
        font-size: 13px;
    }
}

.actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

@media (min-width: 768px) {
    .actions {
        margin-top: 30px;
        padding-top: 30px;
    }
}

