:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --dark-2: #334155;
    --light: #f8fafc;
    --light-2: #e2e8f0;
    --gray: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #fef3f2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

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

nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background: var(--primary);
    color: var(--white);
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--light-2);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

.category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
}

.category-title span {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.category-math span { background: #e0e7ff; }
.category-text span { background: #fce7f3; }
.category-colors span { background: #d1fae5; }
.category-developer span { background: #fef3c7; }
.category-file span { background: #e0f2fe; }
.category-time span { background: #f3e8ff; }
.category-fun span { background: #ffedd5; }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.tool-card .tool-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card.math .tool-icon { background: #e0e7ff; }
.tool-card.text .tool-icon { background: #fce7f3; }
.tool-card.colors .tool-icon { background: #d1fae5; }
.tool-card.developer .tool-icon { background: #fef3c7; }
.tool-card.file .tool-icon { background: #e0f2fe; }
.tool-card.time .tool-icon { background: #f3e8ff; }
.tool-card.fun .tool-icon { background: #ffedd5; }

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

.tool-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--light);
    border-radius: 4px;
    color: var(--gray);
}

footer {
    background: var(--dark);
    color: var(--light);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-2);
    text-align: center;
    color: var(--gray);
}

.tool-page {
    max-width: 900px;
    margin: 0 auto;
}

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

.tool-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--gray);
}

.tool-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
}

.btn-secondary:hover {
    background: var(--light-2);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.result-box h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.result-box .result {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.calc-display {
    grid-column: span 4;
    padding: 1rem;
    font-size: 2rem;
    text-align: right;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.calc-btn {
    padding: 1rem;
    font-size: 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
    font-weight: 500;
}

.calc-btn:hover {
    background: var(--light-2);
}

.calc-btn.operator {
    background: var(--primary);
    color: white;
}

.calc-btn.operator:hover {
    background: var(--primary-dark);
}

.calc-btn.equals {
    background: var(--accent);
    color: white;
}

.calc-btn.clear {
    background: var(--danger);
    color: white;
}

.converter-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
}

.converter-box .arrow {
    font-size: 1.5rem;
    color: var(--gray);
    padding-bottom: 0.5rem;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-2);
    padding-bottom: 0.5rem;
}

.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.code-editor {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    tab-size: 2;
}

.json-viewer {
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.json-key { color: #93c5fd; }
.json-string { color: #86efac; }
.json-number { color: #fbbf24; }
.json-boolean { color: #f472b6; }
.json-null { color: #94a3b8; }

.color-preview {
    width: 100%;
    height: 120px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 2px solid var(--light-2);
}

.color-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.color-input-group label {
    font-weight: 500;
    font-size: 0.875rem;
}

.color-input-group input {
    padding: 0.5rem;
    border: 1px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    color: var(--dark);
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.timer-inputs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.timer-inputs input {
    width: 80px;
    padding: 0.75rem;
    text-align: center;
    font-size: 1.25rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.counter-box {
    text-align: center;
    padding: 1rem;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.counter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.counter-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.counter-btn:hover {
    transform: scale(1.1);
}

.counter-btn.reset {
    background: var(--gray);
}

.flip-card {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    margin: 2rem auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.flip-card-front {
    background: var(--white);
    color: var(--primary);
}

.flip-card-back {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-width: 300px;
    margin: 1rem auto;
}

.game-cell {
    width: 80px;
    height: 80px;
    background: var(--light);
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.game-cell:hover {
    background: var(--light-2);
}

.game-cell.x { color: var(--primary); }
.game-cell.o { color: var(--secondary); }

.game-status {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.dice {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.dice.rolling {
    animation: roll 0.5s ease-in-out;
}

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

.quote-box {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    margin: 1rem 0;
}

.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark);
}

.quote-author {
    color: var(--gray);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 1rem auto;
}

.emoji-btn {
    padding: 1rem;
    font-size: 2rem;
    background: var(--white);
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.emoji-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.text-styles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.text-style-btn {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: 1px solid var(--light-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.text-style-btn:hover {
    background: var(--primary-light);
    color: white;
}

.text-style-output {
    padding: 1rem;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    min-height: 100px;
    font-size: 1.25rem;
    word-break: break-all;
}

.ad-space {
    background: var(--light);
    border: 2px dashed var(--light-2);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    color: var(--gray);
}

.breadcrumb {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.related-tools {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-2);
}

.related-tools h3 {
    margin-bottom: 1rem;
}

.related-tools .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .converter-box {
        grid-template-columns: 1fr;
    }
    
    .converter-box .arrow {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .calculator-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.copy-btn {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
}

.copy-result {
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-box {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.gradient-preview {
    height: 100px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.gradient-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.palette-color {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.palette-color:hover {
    transform: scale(1.05);
}

.slider-container {
    margin-bottom: 1rem;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--light-2);
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.pomodoro-timer {
    text-align: center;
}

.pomodoro-modes {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pomodoro-mode {
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-2);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.pomodoro-mode.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.habit-tracker {
    max-width: 600px;
    margin: 0 auto;
}

.habit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.habit-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.habit-name {
    flex: 1;
    margin-left: 1rem;
}

.habit-days {
    display: flex;
    gap: 0.25rem;
}

.habit-day {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.habit-day.completed {
    background: var(--success);
    color: white;
}

.todo-list {
    max-width: 600px;
    margin: 0 auto;
}

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

.todo-input input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--gray);
}

.todo-text {
    flex: 1;
}

.todo-delete {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.25rem;
}

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

.clock-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.clock-time {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.clock-date {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.clock-zone {
    font-size: 0.875rem;
    color: var(--gray);
}

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

.timezone-card {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.timezone-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.timezone-name {
    font-size: 0.875rem;
    color: var(--gray);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-header {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray);
}

.calendar-day {
    padding: 0.5rem;
    text-align: center;
    background: var(--white);
    min-height: 80px;
    border-radius: var(--radius-sm);
}

.calendar-day.today {
    background: var(--primary-light);
    color: white;
}

.calendar-day.other-month {
    color: var(--light-2);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.calendar-nav button {
    padding: 0.5rem 1rem;
    background: var(--light);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: var(--primary);
    color: white;
}

.reaction-test {
    text-align: center;
    padding: 3rem;
}

.reaction-area {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background: var(--light);
    border-radius: var(--radius);
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.reaction-area.waiting {
    background: var(--danger);
    color: white;
}

.reaction-area.ready {
    background: var(--success);
    color: white;
}

.reaction-area.click {
    background: var(--primary);
    color: white;
}

.reaction-result {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.typing-test {
    max-width: 700px;
    margin: 0 auto;
}

.typing-text {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius);
    font-size: 1.25rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.typing-text span {
    position: relative;
}

.typing-text span.correct {
    color: var(--success);
}

.typing-text span.incorrect {
    color: var(--danger);
    text-decoration: underline;
}

.typing-text span.current {
    background: var(--primary-light);
    color: white;
}

.typing-input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.typing-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.typing-stat {
    text-align: center;
}

.typing-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.typing-stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

.barcode-generator {
    text-align: center;
}

.barcode-preview {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    display: inline-block;
}

.qr-preview {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.qr-preview canvas {
    border-radius: var(--radius);
}

.file-converter {
    text-align: center;
}

.drop-zone {
    border: 3px dashed var(--light-2);
    border-radius: var(--radius);
    padding: 3rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: var(--light);
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-info {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.hash-output {
    font-family: 'Consolas', monospace;
    word-break: break-all;
    background: var(--dark);
    color: var(--light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.regex-result {
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.regex-match {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--light-2);
}

.regex-match:last-child {
    border-bottom: none;
}

.meta-preview {
    background: var(--dark);
    color: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.meta-preview-title {
    color: #8bbff9;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.meta-preview-desc {
    color: #b6b6b6;
    font-size: 0.9rem;
}

.cron-output {
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.cron-field {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-2);
}

.cron-field:last-child {
    border-bottom: none;
}

.grid-generator {
    display: grid;
    gap: 1rem;
}

.grid-preview {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 200px;
}

.grid-item {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.flex-generator {
    display: grid;
    gap: 1rem;
}

.flex-preview {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 150px;
}

.flex-item {
    background: var(--primary-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin: 0.25rem;
}

.speech-controls {
    text-align: center;
    padding: 2rem;
}

.speech-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.speech-btn:hover {
    transform: scale(1.1);
}

.speech-btn.recording {
    background: var(--danger);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.speech-output {
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    min-height: 100px;
    text-align: left;
}

.speech-status {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.meta-tags-form {
    display: grid;
    gap: 1rem;
}

.meta-tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-tag-item input {
    flex: 1;
}

.remove-tag {
    background: var(--danger);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.url-info {
    background: var(--light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.url-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-2);
}

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

.url-info-label {
    font-weight: 600;
    color: var(--dark);
}

.url-info-value {
    color: var(--gray);
    word-break: break-all;
}

.ip-info {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.ip-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-2);
}

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

.ip-info-label {
    font-weight: 600;
    color: var(--dark);
}

.ip-info-value {
    color: var(--gray);
}

.http-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
}

.http-status.success { background: #d1fae5; color: #065f46; }
.http-status.redirect { background: #fef3c7; color: #92400e; }
.http-status.client-error { background: #fee2e2; color: #991b1b; }
.http-status.server-error { background: #fce7f3; color: #9d174d; }

.cors-result {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}

.cors-result.success {
    background: #d1fae5;
    color: #065f46;
}

.cors-result.error {
    background: #fee2e2;
    color: #991b1b;
}

.image-editor {
    text-align: center;
}

.image-preview-container {
    position: relative;
    max-width: 100%;
    margin: 1rem 0;
}

.image-preview-container img {
    max-width: 100%;
    border-radius: var(--radius);
}

.image-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.image-slider {
    max-width: 300px;
    margin: 1rem auto;
}

.image-slider label {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.credit-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius);
    padding: 2rem;
    color: white;
    max-width: 400px;
    margin: 1rem auto;
    box-shadow: var(--shadow-lg);
}

.credit-card-number {
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 2rem 0 1rem;
}

.credit-card-info {
    display: flex;
    justify-content: space-between;
}

.credit-card-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.credit-card-value {
    font-size: 1rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: var(--light-2);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: var(--warning);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: width 0.3s ease;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input {
    width: 20px;
    height: 20px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input {
    width: 20px;
    height: 20px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 34px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-2);
    border-radius: 34px;
    transition: var(--transition);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

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

.range-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-slider input[type="range"] {
    flex: 1;
}

.range-value {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray);
}

.accordion {
    border: 1px solid var(--light-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--light-2);
}

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

.accordion-header {
    padding: 1rem;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: var(--light);
}

.accordion-content {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.open .accordion-content {
    padding: 1rem;
    max-height: 500px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.tabs-vertical {
    display: flex;
    gap: 1rem;
}

.tabs-vertical .tab-list {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.tabs-vertical .tab-content {
    flex: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background: var(--dark);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: #e0e7ff; color: #3730a3; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }

.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #22c55e; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-info { background: #e0f2fe; color: #075985; border-left: 4px solid #0ea5e9; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--light-2);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--light-2);
    background: var(--light);
}

.list-group {
    border: 1px solid var(--light-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.list-group-item {
    padding: 1rem;
    border-bottom: 1px solid var(--light-2);
}

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

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-2);
    background: var(--white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover, .pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--light) 25%, var(--light-2) 50%, var(--light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-image {
    height: 200px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-2);
}

th {
    background: var(--light);
    font-weight: 600;
}

tr:hover {
    background: var(--light);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.divider {
    height: 1px;
    background: var(--light-2);
    margin: 1.5rem 0;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
}

.icon-btn.danger:hover {
    background: var(--danger);
}

.icon-btn.success:hover {
    background: var(--success);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

.avatar-xl {
    width: 120px;
    height: 120px;
    font-size: 2rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-sm { box-shadow: var(--shadow); }
.box-shadow-md { box-shadow: var(--shadow-lg); }
.box-shadow-lg { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.border-radius-sm { border-radius: 4px; }
.border-radius-md { border-radius: var(--radius-sm); }
.border-radius-lg { border-radius: var(--radius); }
.border-radius-full { border-radius: 50%; }

.bg-gradient-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, var(--secondary) 0%, #be185d 100%); }
.bg-gradient-success { background: linear-gradient(135deg, var(--success) 0%, #059669 100%); }
.bg-gradient-dark { background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-5 { margin-left: 1.5rem; }
.ml-6 { margin-left: 2rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-5 { margin-right: 1.5rem; }
.mr-6 { margin-right: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }
.p-6 { padding: 2rem; }

.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-grow { flex-grow: 1; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
.gap-6 { gap: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.transition { transition: var(--transition); }
.transition-none { transition: none; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 45px;
    padding: 0.5rem 1rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.select2-container--default .select2-selection--single:focus {
    border-color: var(--primary);
}

.select2-dropdown {
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

.heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--light-2);
}

.heatmap-cell.level-1 { background: #d1fae5; }
.heatmap-cell.level-2 { background: #6ee7b7; }
.heatmap-cell.level-3 { background: #34d399; }
.heatmap-cell.level-4 { background: #10b981; }

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-2);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--white);
    box-shadow: var(--shadow);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--light-2);
}

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

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light-2);
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.radar-chart {
    max-width: 400px;
    margin: 0 auto;
}

.comparison-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.comparison-item {
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.comparison-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.comparison-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.comparison-diff {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.comparison-diff.positive { color: var(--success); }
.comparison-diff.negative { color: var(--danger); }

.coin-flip-container {
    perspective: 1000px;
    margin: 2rem auto;
}

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

.coin.flipping {
    animation: coinFlip 1.5s ease-out forwards;
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(900deg) scale(1.1); }
    50% { transform: rotateY(1800deg) scale(1); }
    75% { transform: rotateY(2700deg) scale(1.1); }
    100% { transform: rotateY(3600deg) scale(1); }
}

.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    backface-visibility: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid;
}

.coin-heads {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    border-color: #d97706;
}

.coin-tails {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #1e293b;
    border-color: #475569;
    transform: rotateY(180deg);
}

.coin-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.coin-stat {
    text-align: center;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.coin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.coin-stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.dice-roller-container {
    text-align: center;
}

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

.dice-wrapper .dice {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--light-2);
}

.dice-wrapper .dice.rolling {
    animation: diceRoll 0.6s ease-out;
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) translateY(0); }
    20% { transform: rotate(-15deg) translateY(-20px); }
    40% { transform: rotate(15deg) translateY(-30px); }
    60% { transform: rotate(-10deg) translateY(-15px); }
    80% { transform: rotate(10deg) translateY(-5px); }
    100% { transform: rotate(0deg) translateY(0); }
}

.dice-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.dice-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    border-radius: var(--radius-sm);
}

.dice-option input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    text-align: center;
}

.dice-option select {
    padding: 0.5rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
}

.magic-8ball {
    width: 250px;
    height: 250px;
    margin: 2rem auto;
    position: relative;
    cursor: pointer;
}

.magic-8ball-ball {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, #1a1a2e 0%, #0f0f1a 50%, #000 100%);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 60px rgba(255,255,255,0.1),
        0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.magic-8ball-window {
    width: 120px;
    height: 120px;
    background: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    border: 3px solid #333;
}

.magic-8ball-answer {
    color: #00d4ff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    padding: 0.5rem;
    max-width: 100px;
    line-height: 1.3;
}

.magic-8ball.shaking {
    animation: ballShake 0.5s ease-in-out;
}

@keyframes ballShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    10% { transform: translateX(-10px) rotate(-5deg); }
    20% { transform: translateX(10px) rotate(5deg); }
    30% { transform: translateX(-10px) rotate(-5deg); }
    40% { transform: translateX(10px) rotate(5deg); }
    50% { transform: translateX(-5px) rotate(-2deg); }
    60% { transform: translateX(5px) rotate(2deg); }
    70% { transform: translateX(-5px) rotate(-2deg); }
    80% { transform: translateX(5px) rotate(2deg); }
    90% { transform: translateX(-2px) rotate(-1deg); }
}

.magic-8ball-question {
    margin-bottom: 1.5rem;
}

.magic-8ball-question input {
    max-width: 400px;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius);
    text-align: center;
}

.name-picker-container {
    text-align: center;
}

.name-wheel {
    width: 300px;
    height: 300px;
    margin: 2rem auto;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary) 0deg 30deg,
        var(--secondary) 30deg 60deg,
        var(--accent) 60deg 90deg,
        var(--warning) 90deg 120deg,
        var(--success) 120deg 150deg,
        var(--primary-light) 150deg 180deg,
        var(--secondary) 180deg 210deg,
        var(--accent) 210deg 240deg,
        var(--warning) 240deg 270deg,
        var(--success) 270deg 300deg,
        var(--primary-light) 300deg 330deg,
        var(--secondary) 330deg 360deg
    );
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-wheel.spinning {
    animation: wheelSpin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

@keyframes wheelSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(1440deg); }
}

.name-wheel-center {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    z-index: 10;
}

.name-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: 30px solid var(--danger);
    z-index: 20;
}

.name-input {
    max-width: 500px;
    margin: 0 auto 1rem;
}

.name-input textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--light-2);
    border-radius: var(--radius);
    font-size: 1rem;
    resize: vertical;
}

.name-result {
    margin-top: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius);
    color: white;
    animation: resultPop 0.5s ease-out;
}

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

.name-result h3 {
    font-size: 2.5rem;
    margin: 0;
    color: white;
}

.fortune-cookie-container {
    text-align: center;
}

.fortune-cookie {
    font-size: 8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-block;
    margin: 1rem 0;
}

.fortune-cookie:hover {
    transform: scale(1.05);
}

.fortune-cookie.opening {
    animation: cookieOpen 0.8s ease-out forwards;
}

@keyframes cookieOpen {
    0% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.1) rotate(-10deg); }
    60% { transform: scale(0.9) rotate(10deg); }
    100% { transform: scale(0.5) rotate(0); opacity: 0.5; }
}

.fortune-paper {
    display: none;
    background: #fef3c7;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 400px;
    margin: 1rem auto;
    box-shadow: var(--shadow);
    animation: paperReveal 0.5s ease-out 0.3s forwards;
    opacity: 0;
}

.fortune-paper.show {
    display: block;
}

@keyframes paperReveal {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.fortune-paper-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #92400e;
    line-height: 1.6;
}

.fortune-paper-lucky {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.emoji-mixer-container {
    text-align: center;
}

.emoji-mixer-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.emoji-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.emoji-input-group label {
    font-size: 0.875rem;
    color: var(--gray);
}

.emoji-input-group input {
    width: 80px;
    height: 80px;
    font-size: 3rem;
    text-align: center;
    border: 2px solid var(--light-2);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.emoji-input-group input:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.emoji-mixer-plus {
    font-size: 2rem;
    color: var(--gray);
}

.emoji-mixer-result {
    margin-top: 2rem;
    padding: 3rem;
    background: var(--light);
    border-radius: var(--radius);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-mixer-result .result-emoji {
    font-size: 6rem;
    animation: emojiMerge 0.5s ease-out;
}

@keyframes emojiMerge {
    0% { transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0); }
}

.predict-age-result {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.predict-age-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #bae6fd;
}

.predict-age-name {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.predict-age-age {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.predict-age-label {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.predict-age-count {
    font-size: 0.875rem;
    color: var(--gray);
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: inline-block;
}

.age-visual {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.age-candle {
    width: 20px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.age-candle::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 15px;
    background: #f97316;
    border-radius: 50% 50% 20% 20%;
    animation: flicker 0.5s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.predict-gender-result {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.predict-gender-card {
    background: linear-gradient(135deg, #fdf4ff 0%, #fce7f3 100%);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #f9a8d4;
}

.predict-gender-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.predict-gender-name {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.predict-gender-gender {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.predict-gender-probability {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gray);
}

.predict-gender-bar {
    width: 100%;
    height: 10px;
    background: var(--light-2);
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.predict-gender-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 5px;
    transition: width 1s ease-out;
}

.predict-nationality-result {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.predict-nationality-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #86efac;
}

.predict-nationality-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.predict-nationality-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.predict-nationality-flag {
    font-size: 2rem;
    margin-right: 1rem;
}

.predict-nationality-name {
    flex: 1;
    font-weight: 600;
}

.predict-nationality-percent {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

.result-reveal {
    animation: resultReveal 0.6s ease-out;
}

@keyframes resultReveal {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.random-number-result {
    text-align: center;
    animation: numberReveal 0.5s ease-out;
}

@keyframes numberReveal {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.random-number-result .result {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-all;
    padding: 1rem;
}
