/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-links {
    display: flex;
    gap: 1rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.ios-link {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
}

.android-link {
    background: linear-gradient(135deg, #34A853 0%, #4285F4 100%);
}

.app-link i {
    font-size: 1.1rem;
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-btn:hover,
.nav-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.tool-section {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tool-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Spinning Wheel Styles */
.wheel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #ff4757;
    z-index: 10;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.options-input {
    display: flex;
    gap: 0.5rem;
}

#option-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#option-input:focus {
    outline: none;
    border-color: #667eea;
}

#add-option-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#add-option-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.options-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 1rem;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.option-text {
    font-weight: 500;
}

.remove-option {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-option:hover {
    background: #ff3838;
}

.spin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

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

.preset-options {
    border-top: 2px solid #eee;
    padding-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.preset-options h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.preset-categories {
    display: grid;
    gap: 1rem;
}

.preset-category {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.preset-category h5 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.preset-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    margin: 0.2rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-block;
}

.preset-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Result Display */
.result-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.result-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.result-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.spin-again-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.spin-again-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Combined Wheel Styles */
.combined-wheel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.combined-wheel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.combined-wheel-display {
    width: 400px;
    height: 400px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.combined-wheel-layer {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.combined-wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #ff4757;
    z-index: 20;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.combined-wheel-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.combined-templates h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.combined-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.combined-template-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.combined-template-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.combined-template-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.template-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.template-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.template-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.combined-wheel-layers {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    min-height: 120px;
}

.wheel-layer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.layer-title {
    font-weight: 600;
    color: #333;
}

.layer-options {
    font-size: 0.9rem;
    color: #666;
}

.spin-combined-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spin-combined-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

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

.customize-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.customize-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.combined-result-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.combined-result-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: scaleIn 0.5s ease;
}

.combined-result-layers {
    margin: 2rem 0;
}

.combined-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.result-layer-title {
    font-weight: 600;
    color: #333;
}

.result-layer-value {
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .app-links {
        justify-content: center;
    }

    .app-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .nav {
        justify-content: center;
    }

    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-app-links {
        align-items: center;
    }

    .page-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .page-modal-header {
        padding: 1.5rem;
    }

    .page-modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 100px);
    }

    .page-header {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .contact-info-grid,
    .usage-grid,
    .rights-grid,
    .principles-grid,
    .appropriate-grid,
    .inappropriate-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid,
    .age-info {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }

    .privacy-section,
    .disclaimer-section {
        padding: 1.5rem;
    }

    .final-reminder {
        flex-direction: column;
        text-align: center;
    }
    
    .wheel-container,
    .combined-wheel-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #wheel-canvas {
        width: 300px;
        height: 300px;
    }

    .combined-wheel-display {
        width: 300px;
        height: 300px;
    }

    .combined-template-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-header h2 {
        font-size: 2rem;
    }
    
    .result-content {
        padding: 2rem;
    }
}

/* Dice Styles */
.dice-container {
    text-align: center;
}

.dice-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: bold;
    color: #333;
}

.control-group select,
.control-group input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.dice-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.die {
    width: 80px;
    height: 80px;
    background: white;
    border: 3px solid #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: rollDice 0.5s ease-in-out;
}

@keyframes rollDice {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

.die.rolling {
    animation: rollDice 0.1s infinite;
}

.roll-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.roll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.dice-result {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.total-result {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.individual-results {
    color: #666;
}

/* Coin Flip Styles */
.coin-container {
    text-align: center;
}

.coin-wrapper {
    perspective: 1000px;
    margin: 2rem 0;
}

.coin {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
}

.coin.flipping {
    animation: flipCoin 1s ease-in-out;
}

@keyframes flipCoin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(900deg); }
    100% { transform: rotateY(1800deg); }
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    backface-visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.heads {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    transform: rotateY(0deg);
}

.tails {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    transform: rotateY(180deg);
}

.coin-side i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.flip-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.flip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4);
}

.coin-result {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.coin-result h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.coin-result-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

/* Cards Styles */
.cards-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    min-height: 200px;
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

.card {
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.card.flipped {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.card.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

.cards-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cards-controls button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cards-controls button:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.cards-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#card-labels {
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.card-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.card-result h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-result-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .tool-section {
        padding: 1rem;
    }

    #wheel-canvas {
        width: 250px;
        height: 250px;
    }

    .nav-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .dice-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Voting Styles */
.voting-container {
    max-width: 800px;
    margin: 0 auto;
}

.voting-setup {
    margin-bottom: 2rem;
}

#voting-topic {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.voting-options {
    margin-bottom: 1.5rem;
}

.voting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.voting-option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.voting-option.voted {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.voting-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#voting-option-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

#add-voting-option-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-voting-btn,
#reset-voting-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

#reset-voting-btn {
    background: #ff6b6b;
}

.voting-results {
    text-align: center;
}

#voting-topic-display {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.voting-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.voting-bar-label {
    min-width: 150px;
    text-align: left;
    font-weight: bold;
}

.voting-bar-fill {
    flex: 1;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
}

.voting-bar-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.voting-stats {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
}

/* Number Generator Styles */
.number-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.number-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.generate-btn {
    background: linear-gradient(135deg, #10ac84 0%, #00d2d3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 172, 132, 0.4);
}

.number-result {
    margin-top: 2rem;
}

.generated-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.generated-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    animation: numberPop 0.5s ease;
}

@keyframes numberPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 0 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #667eea;
    text-decoration: none;
}

.footer-app-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-app-link:hover {
    background: #667eea;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.footer-app-link i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.footer-bottom p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Page Modal Styles */
.page-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.page-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: scaleIn 0.5s ease;
}

.page-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.page-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.page-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    line-height: 1.6;
}

.page-modal-body h3 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.page-modal-body h3:first-child {
    margin-top: 0;
}

.page-modal-body p {
    color: #666;
    margin-bottom: 1rem;
}

.page-modal-body ul {
    color: #666;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-modal-body li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin: 1rem 0;
}

.contact-email {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-email:hover {
    color: #5a6fd8;
    text-decoration: none;
}

/* Page Content Styles */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

.page-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: bold;
}

.page-header p {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

/* Contact Page Styles */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-card {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #f8f9fa;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-card h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 2rem;
}

.contact-email-display {
    margin: 2rem 0;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.contact-email-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.contact-info-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-card ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.contact-info-card li {
    margin-bottom: 0.5rem;
}

.response-info {
    text-align: center;
}

.response-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.response-card h3 {
    margin: 0 0 1rem 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-tips h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tip-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.tip-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.tip-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Privacy Policy Styles */
.privacy-content,
.disclaimer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.privacy-section,
.disclaimer-section {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

.privacy-section h2,
.disclaimer-section h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.privacy-section h3,
.disclaimer-section h3 {
    margin: 2rem 0 1rem 0;
    color: #333;
    font-size: 1.3rem;
}

.privacy-section h3:first-of-type,
.disclaimer-section h3:first-of-type {
    margin-top: 1rem;
}

.highlight-box,
.warning-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin: 1.5rem 0;
}

.warning-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.warning-box i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.dont-collect-box {
    background: #d1ecf1;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
    margin: 1rem 0;
}

.usage-grid,
.rights-grid,
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.usage-item,
.right-item,
.principle-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.usage-item:hover,
.right-item:hover,
.principle-item:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.usage-item i,
.right-item i,
.principle-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.usage-item h4,
.right-item h4,
.principle-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.security-measures {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.security-item i {
    font-size: 1.5rem;
    color: #28a745;
    margin-top: 0.25rem;
}

.security-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.third-party-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.third-party-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #6f42c1;
}

.third-party-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-privacy,
.contact-info-disclaimer {
    text-align: center;
    margin: 2rem 0;
}

/* Disclaimer Specific Styles */
.liability-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.liability-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

.liability-item i {
    font-size: 1.2rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.liability-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.appropriate-grid,
.inappropriate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case {
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.use-case.good {
    background: #d4edda;
    border: 2px solid #28a745;
}

.use-case.bad {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.use-case.good:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.use-case.bad:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.use-case.good i {
    color: #28a745;
}

.use-case.bad i {
    color: #dc3545;
}

.use-case i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.use-case h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.age-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.age-item {
    background: #e7f3ff;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.age-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-top: 0.25rem;
}

.age-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.final-reminder {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.final-reminder i {
    font-size: 2rem;
    margin-top: 0.25rem;
}

.final-reminder h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}
