/* Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: #333;
    line-height: 1.5;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 25px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.home-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    font-size: 15px;
}

.home-link:hover {
    color: #1557b0;
}

/* Common Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 0;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a73e8;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Common Components */
.primary-btn, .secondary-btn, .control-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #1a73e8;
    color: white;
}

.primary-btn:hover {
    background-color: #1557b0;
}

.secondary-btn {
    background-color: #f1f3f4;
    color: #5f6368;
}

.secondary-btn:hover {
    background-color: #e8eaed;
}

/* Text Analyzer Styles */
.analyzer-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #1a73e8;
}

.results-section {
    border-top: 1px solid #eee;
    padding-top: 30px;
}

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

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Pomodoro Timer Styles */
.timer-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
    position: relative;
    min-height: 450px;
}

.time-input {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.time-input .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-input input {
    width: 80px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.time-input input:focus {
    border-color: #1a73e8;
}

.time-input label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.timer-display {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
}

.timer-display .time {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 10px;
}

.timer-display .phase {
    font-size: 18px;
    color: #5f6368;
    font-weight: 500;
}

.time-segments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    min-width: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.time-segment span:first-child {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    font-family: 'Segoe UI', monospace;
    line-height: 1;
}

.segment-label {
    font-size: 14px;
    color: #5f6368;
    margin-top: 8px;
    font-weight: 500;
}

.time-separator {
    font-size: 48px;
    font-weight: 700;
    color: #1a73e8;
    padding: 0 10px;
    line-height: 1;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 320px;
    margin-bottom: 20px;
}

.controls .control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.controls .control-btn i {
    font-size: 20px;
}

.controls .control-btn span {
    font-size: 14px;
}

.controls .control-btn.start {
    background-color: #1a73e8;
    color: white;
}

.controls .control-btn.start:hover:not(:disabled) {
    background-color: #1557b0;
    transform: translateY(-2px);
}

.controls .control-btn.pause {
    background-color: #f1f3f4;
    color: #5f6368;
}

.controls .control-btn.pause:hover:not(:disabled) {
    background-color: #e8eaed;
    transform: translateY(-2px);
}

.controls .control-btn.reset {
    background-color: #f1f3f4;
    color: #5f6368;
}

.controls .control-btn.reset:hover:not(:disabled) {
    background-color: #e8eaed;
    transform: translateY(-2px);
}

.controls .control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Settings */
.settings {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 2px solid #e8eaed;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-group label {
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
}

.setting-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.setting-group input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

/* Stats Box */
.stats-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.stats-box h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
    font-size: 20px;
}

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

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e8eaed;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 24px;
    color: #1a73e8;
    margin-bottom: 10px;
}

.stat-item span {
    display: block;
    color: #5f6368;
    font-size: 14px;
    margin-bottom: 5px;
}

.stat-item div {
    color: #1a73e8;
    font-size: 24px;
    font-weight: 600;
}

/* Add animation for phase changes */
@keyframes pulsePhase {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.phase.phase-change {
    animation: pulsePhase 0.5s ease-out;
}

/* Unit Converter Styles */
.converter-box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.input-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .input-section {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 500;
    color: #5f6368;
    font-size: 15px;
}

.input-group input,
.input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background-color: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.btn-secondary:hover {
    background-color: #e8eaed;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
    display: none;
}

.result-section h2 {
    color: #1a73e8;
    margin: 0 0 20px 0;
    font-size: 20px;
    text-align: center;
}

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

@media (max-width: 576px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item h3 {
    margin: 0 0 15px 0;
    color: #5f6368;
    font-size: 16px;
    font-weight: 500;
}

.amount {
    font-family: 'Segoe UI', monospace;
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

/* Remove duplicate styles */
.unit-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.unit-selectors select {
    width: 100%;
}

.swap-icon {
    cursor: pointer;
    font-size: 24px;
    color: #1a73e8;
    padding: 8px;
    transition: transform 0.3s;
}

.swap-icon:hover {
    transform: scale(1.2);
}

.result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    color: #1a73e8;
    font-weight: 500;
}

/* Password Generator Styles */
.password-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.password-options {
    margin-bottom: 30px;
}

.password-options .option {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.password-options .option:last-child {
    margin-bottom: 0;
}

.password-options label {
    color: #5f6368;
    font-weight: 500;
    min-width: 140px;
}

.password-options input[type="number"] {
    width: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.password-options input[type="number"]:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.checkbox-group .option {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a73e8;
    cursor: pointer;
}

.checkbox-group label {
    color: #5f6368;
    font-size: 15px;
    cursor: pointer;
    min-width: auto;
}

.generate-btn {
    width: 100%;
    padding: 14px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.generate-btn:hover {
    background-color: #1557b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.generate-btn:active {
    transform: translateY(0);
}

.password-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
}

.password-result input {
    background: #f8f9fa;
    padding: 14px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 16px;
    font-family: monospace;
    color: #1a73e8;
    cursor: text;
    transition: all 0.3s ease;
}

.password-result input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.copy-btn {
    padding: 0 25px;
    background-color: #34a853;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    background-color: #2d8e47;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Add success state for copy button */
.copy-btn.success {
    background-color: #34a853;
}

.copy-btn.success:hover {
    background-color: #2d8e47;
}

/* Quote Generator Styles */
.quote-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto 30px;
}

.quote-content {
    position: relative;
    padding: 20px 40px;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e8eaed;
}

.quote-icon {
    font-size: 24px;
    color: #1a73e8;
    position: absolute;
}

.fa-quote-left {
    top: 20px;
    left: 20px;
}

.fa-quote-right {
    bottom: 20px;
    right: 20px;
}

.quote-content p {
    font-size: 20px;
    line-height: 1.6;
    color: #202124;
    text-align: center;
    margin: 15px 0;
    font-style: italic;
}

.quote-author {
    text-align: center;
    margin-bottom: 25px;
}

.quote-author span {
    font-size: 16px;
    color: #5f6368;
    font-weight: 500;
}

.quote-category {
    margin-bottom: 25px;
}

.quote-category select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #5f6368;
    outline: none;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.quote-category select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.quote-box .button-group {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.quote-box .button-group button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-box .button-group button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quote-box .button-group button:active {
    transform: translateY(0);
}

.quote-box .button-group button i {
    font-size: 16px;
}

/* Daily Quote Section */
.daily-quote-section {
    max-width: 800px;
    margin: 0 auto;
}

.daily-quote-section h2 {
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
}

.daily-quote-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.daily-quote-box .quote-text {
    font-size: 18px;
    line-height: 1.6;
    color: #202124;
    margin-bottom: 15px;
    font-style: italic;
}

.daily-quote-box .quote-author {
    color: #5f6368;
    font-weight: 500;
    margin-bottom: 0;
}

/* Add animation for quote generation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-content.new-quote {
    animation: fadeIn 0.5s ease-out;
}

.tool-description {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    color: #444;
    border-left: 4px solid #1a73e8;
}

.tool-description p {
    margin-bottom: 15px;
    font-size: 16px;
}

.tool-description p:last-child {
    margin-bottom: 0;
}

.progress-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.progress-ring-circle {
    fill: transparent;
    stroke: #1a73e8;
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-ring-circle-bg {
    fill: transparent;
    stroke: #f1f3f4;
    stroke-width: 12;
}

/* Morse Code Translator Styles */
.morse-translator-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.morse-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.morse-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.morse-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.morse-option label {
    font-weight: 500;
    cursor: pointer;
}

.morse-input-area, .morse-output-area {
    margin-bottom: 20px;
}

.label-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
    color: #5f6368;
}

.label-with-icon i {
    margin-right: 8px;
    color: #1a73e8;
}

.morse-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    font-family: 'Courier New', monospace;
    transition: border-color 0.3s;
}

.morse-textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

.morse-textarea:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.morse-controls {
    margin-bottom: 20px;
}

.morse-control-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.morse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #f1f3f4;
    color: #5f6368;
}

.morse-btn i {
    margin-right: 8px;
}

.morse-btn:hover {
    background-color: #e8eaed;
}

.translate-btn {
    background-color: #1a73e8;
    color: white;
}

.translate-btn:hover {
    background-color: #1557b0;
}

.copy-btn:hover {
    background-color: #e8eaed;
}

.clear-btn:hover {
    background-color: #e8eaed;
}

.swap-btn:hover {
    background-color: #e8eaed;
}

.morse-sound-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.morse-sound-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #1a73e8;
    color: white;
}

.morse-sound-btn i {
    margin-right: 8px;
}

.morse-sound-btn:hover {
    background-color: #1557b0;
}

.morse-wpm-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.morse-wpm-control label {
    font-weight: 500;
}

.morse-wpm-control input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.morse-info {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.morse-info h3 {
    margin-bottom: 15px;
    color: #1a73e8;
    text-align: center;
}

.morse-code-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.morse-code-item {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.morse-code-item .char {
    font-weight: bold;
    font-size: 18px;
    color: #1a73e8;
}

.morse-code-item .code {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .morse-control-btns {
        flex-direction: column;
    }
    
    .morse-sound-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .morse-code-chart {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Back to Home Button at Top */
.back-to-home-top {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.3s;
}

.home-link:hover {
    background: #e0e0e0;
    text-decoration: none;
}

.home-link i {
    font-size: 14px;
}

/* Color Picker & Palette Generator Styles */
.header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e8f0fe;
}

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

h1 {
    margin: 0;
    text-align: center;
    font-size: 2.2rem;
}

.section {
    margin-bottom: 60px;
}

.section-title {
    color: #1a73e8;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f0fe;
}

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

.tool-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tool-card h2 {
    color: #1a73e8;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.tool-card p {
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
    margin: 0;
}

.tool-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
    text-align: center;
    width: 100%;
}

.tool-card a:hover {
    background-color: #1557b0;
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .header-section {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        width: 48px;
        height: 48px;
    }
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Media queries for responsive color picker */
@media (max-width: 768px) {
    .color-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-input input[type="color"] {
        width: 100%;
        height: 60px;
    }
    
    .palette-grid, .favorites-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Additional Color Picker Styles for Saved Palettes */
.saved-palette {
    position: relative;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.saved-palette:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.saved-palette .palette-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.saved-palette .color-preview {
    height: 100px;
}

.delete-palette-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: #f1f3f4;
    color: #ea4335;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-palette-btn:hover {
    background-color: #ea4335;
    color: white;
    transform: scale(1.1);
}

.empty-favorites {
    text-align: center;
    color: #5f6368;
    padding: 30px 0;
    font-style: italic;
}

.controls button i {
    margin-right: 8px;
}

/* Media queries for responsive color picker */
@media (max-width: 768px) {
    .saved-palette .palette-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .saved-palette .color-preview {
        height: 80px;
    }
}

/* Watermark Maker Styles */
.watermark-maker-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .watermark-maker-box {
        grid-template-columns: 1fr;
    }
}

.watermark-input-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.watermark-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.watermark-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.watermark-input-group label {
    font-weight: 500;
    color: #5f6368;
    font-size: 15px;
}

.watermark-input-group input[type="text"],
.watermark-input-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    transition: all 0.3s;
}

.watermark-input-group input[type="text"]:focus,
.watermark-input-group select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.watermark-slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.watermark-slider-group input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
}

.watermark-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #1a73e8;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.watermark-slider-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #1557b0;
}

.watermark-slider-group span {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #5f6368;
    min-width: 60px;
    text-align: right;
}

.watermark-color-picker {
    display: flex;
    align-items: center;
    gap: 15px;
}

.watermark-color-picker input[type="color"] {
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

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

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

.watermark-color-picker span {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #5f6368;
}

.watermark-input-group input[type="file"] {
    padding: 12px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

.watermark-preview-section {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watermark-preview-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.watermark-preview-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.watermark-preview-text {
    position: absolute;
    color: black;
    font-size: 24px;
    transform-origin: center;
    white-space: nowrap;
    opacity: 0.5;
    pointer-events: none;
    text-align: center;
    z-index: 10;
}

.watermark-buttons {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 991px) {
    .watermark-buttons {
        grid-column: span 1;
    }
}

.watermark-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.watermark-btn i {
    font-size: 16px;
}

.watermark-btn-primary {
    background-color: #1a73e8;
    color: white;
}

.watermark-btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.watermark-btn-secondary {
    background-color: #f1f3f4;
    color: #5f6368;
}

.watermark-btn-secondary:hover {
    background-color: #e8eaed;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Empty state for preview */
.watermark-preview-section:empty::before {
    content: "Upload an image to preview";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #5f6368;
    font-style: italic;
}

/* Text Summary Styles */
.summary-box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-input-section {
    margin-bottom: 30px;
}

.summary-text-area {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s;
}

.summary-text-area:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.summary-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.summary-option-group {
    flex: 1;
    min-width: 200px;
}

.summary-option-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.summary-option-field label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #5f6368;
    font-size: 15px;
}

.summary-option-field select,
.summary-option-field input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    background-color: white;
    transition: all 0.3s;
}

.summary-option-field select:focus,
.summary-option-field input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.summary-generate-btn {
    background-color: #1a73e8;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 20px;
}

.summary-generate-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.summary-generate-btn:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.summary-output-section {
    margin-top: 30px;
    display: none;
}

.summary-result {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.summary-result-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-height: 100px;
}

.summary-loading {
    display: none;
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.summary-loading i {
    font-size: 24px;
    color: #1a73e8;
    animation: spin 2s linear infinite;
}

.summary-loading p {
    margin-top: 10px;
    color: #666;
}

.summary-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.summary-control-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.summary-control-btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-copy-btn {
    color: #1a73e8;
}

.summary-copy-btn:hover {
    border-color: #1a73e8;
}

.summary-new-btn {
    color: #34a853;
}

.summary-new-btn:hover {
    border-color: #34a853;
}

.summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.summary-stat {
    background-color: #f1f3f4;
    padding: 12px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.summary-stat:hover {
    background-color: #e8eaed;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.summary-stat i {
    color: #1a73e8;
    font-size: 16px;
}

.summary-stat span {
    font-weight: 500;
    color: #5f6368;
}

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

@media (max-width: 768px) {
    .summary-options {
        flex-direction: column;
    }
    
    .summary-stats {
        flex-direction: column;
    }
}

/* Tip Calculator Styles */
.calculator-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.tip-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.tip-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

.tip-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tip-option {
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

.tip-option:hover {
    background-color: #d1e7ff;
}

.tip-option.active {
    background-color: #007bff;
    color: white;
}

.custom-tip-input {
    margin-top: 15px;
}

.result-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

.result-item h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #444;
}

.amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0056b3;
    margin-top: 10px;
}

.split-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.split-inputs {
    margin-bottom: 20px;
}

.split-results {
    margin-top: 20px;
    transition: opacity 0.3s ease;
}

.split-result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.split-result-item .person {
    font-weight: 600;
    color: #333;
}

.split-result-item .amount {
    font-size: 1.2rem;
}

.split-totals {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #e6f2ff;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 700;
}

.split-totals .label {
    font-size: 1.1rem;
    color: #333;
}

.split-totals .amount {
    font-size: 1.3rem;
    color: #0056b3;
}

.optional {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: normal;
}

@media (max-width: 768px) {
    .tip-options {
        justify-content: center;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .input-section {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .calculator-box {
        padding: 15px;
    }
}

/* Ratio Calculator Styles */
.ratio-calculator-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

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

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

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a73e8;
    outline: none;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #1557b0;
    color: white;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #444;
}

.result p {
    font-size: 1rem;
    color: #333;
}

/* Prime Number Checker Styles */
.prime-checker-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

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

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

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a73e8;
    outline: none;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #1557b0;
    color: white;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #444;
}

.result p {
    font-size: 1rem;
    color: #333;
}

/* Grocery List Styles */
.grocery-list {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.list-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a73e8;
}

.category-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.category-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-button:hover {
    background: #f1f3f4;
}

.category-button.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.item-input {
    display: flex;
    gap: 10px;
}

.item-input input {
    flex: 1;
}

.item-input input[type="number"] {
    width: 80px;
}

.submit-button {
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #1557b0;
}

.search-bar {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #1a73e8;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
}

.grocery-lists {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

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

.list-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

.list-actions {
    display: flex;
    gap: 10px;
}

.action-button {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.action-button:hover {
    color: #1a73e8;
}

.item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

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

.item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.item-name {
    flex: 1;
    font-size: 16px;
}

.item-quantity {
    color: #5f6368;
    font-size: 14px;
}

.item-category {
    padding: 4px 8px;
    background: #f1f3f4;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
}

.list-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #5f6368;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #5f6368;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .grocery-list {
        padding: 20px;
    }
    
    .item-input {
        flex-direction: column;
    }
    
    .item-input input[type="number"] {
        width: 100%;
    }
    
    .list-actions {
        flex-direction: column;
    }
}

/* Grade Calculator Styles */
.grade-calculator {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.course-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.assignment-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.assignment-input input {
    flex: 1;
    min-width: 200px;
}

.assignment-input input[type="number"] {
    width: 100px;
}

.grade-scale {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.grade-scale span {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    color: #5f6368;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.courses {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.course-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

.course-actions {
    display: flex;
    gap: 10px;
}

.course-action-button {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.course-action-button:hover {
    color: #1a73e8;
}

.assignments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assignment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.assignment:last-child {
    border-bottom: none;
}

.assignment-name {
    flex: 1;
    font-size: 16px;
}

.assignment-grade {
    color: #1a73e8;
    font-weight: 500;
    min-width: 60px;
}

.assignment-weight {
    color: #5f6368;
    font-size: 14px;
    min-width: 60px;
}

.course-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #5f6368;
}

.current-grade {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

@media (max-width: 768px) {
    .grade-calculator {
        padding: 20px;
    }
    
    .assignment-input {
        flex-direction: column;
    }
    
    .assignment-input input[type="number"] {
        width: 100%;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .grade-scale {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Workout Tracker Styles */
.workout-tracker {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #5f6368;
}

.progress-bar {
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1a73e8;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.workout-input {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.exercise-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.exercise-input input,
.exercise-input select {
    flex: 1;
    min-width: 200px;
}

.exercise-input input[type="number"] {
    width: 120px;
}

.workouts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workout {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.workout-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

.workout-actions {
    display: flex;
    gap: 10px;
}

.workout-action-button {
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.workout-action-button:hover {
    color: #1a73e8;
}

.exercises {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exercise {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.exercise:last-child {
    border-bottom: none;
}

.exercise-name {
    flex: 1;
    font-size: 16px;
}

.exercise-duration {
    color: #1a73e8;
    font-weight: 500;
    min-width: 80px;
}

.exercise-type {
    padding: 4px 8px;
    background: #f1f3f4;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
}

.workout-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #5f6368;
}

.total-duration {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

@media (max-width: 768px) {
    .workout-tracker {
        padding: 20px;
    }
    
    .exercise-input {
        flex-direction: column;
    }
    
    .exercise-input input[type="number"] {
        width: 100%;
    }
    
    .workout-actions {
        flex-direction: column;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
}

/* Workout Planner Styles */
.workout-planner-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.workout-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.form-group select,
.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #1a73e8;
}

.fitness-level-wrapper {
    position: relative;
    padding: 20px 0;
}

.intensity-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #e8eaed;
    border-radius: 2px;
    outline: none;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #1a73e8;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.intensity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.fitness-level-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #5f6368;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px auto;
}

.generate-btn:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.generate-btn i {
    font-size: 18px;
}

.workout-plan {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.workout-day {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.workout-day-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 5px;
}

.exercise-details {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #5f6368;
}

.exercise-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.exercise-detail i {
    color: #1a73e8;
}

.workout-notes {
    margin-top: 20px;
    padding: 15px;
    background: #e8f0fe;
    border-radius: 6px;
    font-size: 14px;
    color: #1a73e8;
}

@media (max-width: 768px) {
    .workout-planner-box {
        padding: 20px;
    }
    
    .form-section {
        grid-template-columns: 1fr;
    }
    
    .exercise-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exercise-details {
        flex-direction: column;
        gap: 5px;
    }
}

/* Weight Tracker Styles */
.weight-tracker {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #5f6368;
}

.goal-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.goal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
}

.action-button {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.action-button:hover {
    color: #1a73e8;
}

.goal-progress {
    height: 6px;
    background: #e8eaed;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.goal-progress-fill {
    height: 100%;
    background: #1a73e8;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.goal-details {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #5f6368;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.chart-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 15px;
}

.chart {
    height: 300px;
    position: relative;
}

.weight-input {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.input-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #1a73e8;
}

.submit-button {
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #1557b0;
}

.entries {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.entry-date {
    font-size: 14px;
    color: #5f6368;
}

.entry-weight {
    font-size: 16px;
    font-weight: 500;
    color: #1a73e8;
}

.entry-actions {
    display: flex;
    gap: 10px;
}

.entry-action-button {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.entry-action-button:hover {
    color: #1a73e8;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #5f6368;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .weight-tracker {
        padding: 20px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .entry-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Typing Speed Test Styles */
.typing-test {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #5f6368;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.difficulty-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #5f6368;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.difficulty-btn:hover {
    background: #f1f3f4;
}

.difficulty-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.text-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    min-height: 150px;
    position: relative;
}

.text-display .current-word {
    background: #e8f0fe;
    padding: 2px 4px;
    border-radius: 4px;
}

.text-display .correct {
    color: #34a853;
}

.text-display .incorrect {
    color: #ea4335;
    text-decoration: underline;
}

.input-area {
    margin-bottom: 30px;
}

.input-area textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s;
}

.input-area textarea:focus {
    border-color: #1a73e8;
}

.input-area textarea:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.controls button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

#start-btn {
    background: #1a73e8;
    color: white;
}

#start-btn:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-2px);
}

#reset-btn {
    background: #f1f3f4;
    color: #5f6368;
}

#reset-btn:hover:not(:disabled) {
    background: #e8eaed;
    transform: translateY(-2px);
}

.history-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.history-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a73e8;
    margin-bottom: 15px;
    text-align: center;
}

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

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-date {
    font-size: 14px;
    color: #5f6368;
}

.history-stats {
    display: flex;
    gap: 20px;
}

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

.history-stat-value {
    font-size: 16px;
    font-weight: 500;
    color: #1a73e8;
}

.history-stat-label {
    font-size: 12px;
    color: #5f6368;
}

@media (max-width: 768px) {
    .typing-test {
        padding: 20px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .difficulty-selector {
        flex-wrap: wrap;
    }
    
    .history-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .history-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Daily Expense Logger Styles */
.expense-logger {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #1a73e8;
}

#addExpense {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0 auto 30px;
}

#addExpense:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#addExpense i {
    font-size: 16px;
}

.expense-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.expense-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    font-weight: 500;
    color: #5f6368;
    border-bottom: 1px solid #eee;
}

.expense-items {
    max-height: 400px;
    overflow-y: auto;
}

.expense-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

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

.expense-date {
    color: #5f6368;
    font-size: 14px;
}

.expense-description {
    font-weight: 500;
}

.expense-category {
    padding: 4px 8px;
    background: #f1f3f4;
    border-radius: 4px;
    font-size: 12px;
    color: #5f6368;
    text-align: center;
}

.expense-amount {
    font-weight: 500;
    color: #1a73e8;
    text-align: right;
}

.expense-actions {
    display: flex;
    gap: 10px;
}

.expense-action-button {
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.expense-action-button:hover {
    color: #1a73e8;
}

.summary-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.summary-card h3 {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 10px;
}

.amount {
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .expense-logger {
        padding: 20px;
    }
    
    .input-form {
        grid-template-columns: 1fr;
    }
    
    .expense-header,
    .expense-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .expense-header div:nth-child(2),
    .expense-item div:nth-child(2) {
        grid-column: span 2;
    }
    
    .expense-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
    
    .summary-section {
        grid-template-columns: 1fr;
    }
}

/* Puzzle Maker Styles */
.puzzle-maker-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.puzzle-options {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.puzzle-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.puzzle-type-card {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.puzzle-type-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.puzzle-type-card.active {
    background: var(--primary-color);
    color: white;
}

.puzzle-form-container {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.puzzle-form {
    display: none;
}

.puzzle-form.active {
    display: block;
}

.puzzle-form .form-group {
    margin-bottom: 1rem;
}

.puzzle-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.puzzle-form input,
.puzzle-form textarea,
.puzzle-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: var(--text-color);
}

.puzzle-preview {
    grid-column: 1 / -1;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.puzzle-output {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 2rem;
    margin: 1rem 0;
}

.placeholder-text {
    color: var(--text-muted);
    text-align: center;
}

.puzzle-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Puzzle Grid Styles */
.wordsearch-grid,
.crossword-grid,
.sudoku-grid,
.maze-grid {
    display: grid;
    gap: 2px;
    background: var(--border-color);
    padding: 1rem;
    border-radius: 6px;
}

.grid-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    font-weight: 500;
    user-select: none;
}

/* Word Search Specific Styles */
.wordsearch-puzzle {
    width: 100%;
}

.wordsearch-words {
    margin-top: 2rem;
}

.wordsearch-words ul {
    columns: 3;
    list-style: none;
    padding: 0;
}

/* Crossword Specific Styles */
.crossword-puzzle {
    width: 100%;
}

.crossword-clues {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Sudoku Specific Styles */
.sudoku-grid {
    border: 2px solid var(--border-color);
}

.sudoku-grid .grid-cell {
    border: 1px solid var(--border-color);
}

.sudoku-grid .grid-cell:nth-child(3n) {
    border-right: 2px solid var(--border-color);
}

.sudoku-grid .grid-cell:nth-child(9n) {
    border-right: none;
}

.sudoku-grid .grid-cell:nth-child(n+19):nth-child(-n+27),
.sudoku-grid .grid-cell:nth-child(n+46):nth-child(-n+54) {
    border-bottom: 2px solid var(--border-color);
}

/* Maze Specific Styles */
.maze-grid {
    border: 2px solid var(--border-color);
}

.maze-grid .grid-cell {
    border: 1px solid var(--border-color);
}

/* Print Styles */
@media print {
    .puzzle-maker-container {
        grid-template-columns: 1fr;
    }

    .puzzle-options,
    .puzzle-form-container {
        display: none;
    }

    .puzzle-preview {
        box-shadow: none;
    }

    .puzzle-actions {
        display: none;
    }
}

/* Crossword Puzzle Styles */
.crossword-puzzle {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.crossword-grid {
    display: grid;
    gap: 2px;
    background: #333;
    padding: 2px;
    border: 2px solid #333;
}

.crossword-grid .grid-cell {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: bold;
    font-size: 1.2rem;
}

.crossword-grid .grid-cell.empty {
    background: #333;
}

.crossword-grid .cell-number {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 0.6rem;
    color: #666;
}

.crossword-grid .cell-letter {
    z-index: 1;
}

.crossword-clues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.crossword-clues h4 {
    margin-bottom: 1rem;
    color: #333;
}

.crossword-clues ol {
    list-style-position: inside;
    padding-left: 0;
}

.crossword-clues li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.instructions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.instructions pre {
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-family: monospace;
}

.instructions code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.crossword-grid .cell-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    padding: 0;
    margin: 0;
}

.crossword-grid .cell-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.05);
}

.crossword-grid .cell-input.correct {
    color: #28a745;
}

.crossword-grid .cell-input.incorrect {
    color: #dc3545;
}

/* Task Prioritizer Updated Styles */
.task-prioritizer-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(400px, 2fr);
    gap: 2rem;
    margin: 2rem 0;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #007bff;
}

.task-input-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-form .form-group {
    margin-bottom: 1.5rem;
}

.task-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.task-form label i {
    color: #007bff;
}

.task-form input[type="text"],
.task-form textarea,
.task-form input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.task-form input[type="text"]:focus,
.task-form textarea:focus,
.task-form input[type="date"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.priority-factors {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.priority-factors h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.priority-factors h3 i {
    color: #007bff;
}

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

.slider-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.slider-group .value-display {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.task-list-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.task-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .task-prioritizer-container {
        grid-template-columns: 1fr;
    }
    
    .task-filters {
        margin-top: 1rem;
    }
}

/* Private Messaging Tool Styles */
.messaging-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.message-input-section,
.message-result-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.message-form textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.encryption-options {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.encryption-options h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.encryption-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.encryption-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.encryption-option:hover {
    background: #f1f3f4;
}

.encryption-option input[type="radio"] {
    margin-top: 0.25rem;
}

.encryption-option label {
    flex: 1;
    cursor: pointer;
}

.encryption-option label span {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.encryption-option label small {
    color: #666;
    font-size: 0.875rem;
}

.encryption-option i {
    color: #1a73e8;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.key-input-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.key-input-section .form-group {
    margin-bottom: 1rem;
}

.key-input-section .form-group:last-child {
    margin-bottom: 0;
}

.key-input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.key-input-section input,
.key-input-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.key-input-section input:focus,
.key-input-section textarea:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.generate-key-btn,
.generate-keypair-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f3f4;
    border: none;
    border-radius: 4px;
    color: #1a73e8;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.generate-key-btn:hover,
.generate-keypair-btn:hover {
    background: #e8eaed;
}

.message-actions {
    display: flex;
    gap: 1rem;
}

.message-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.message-actions .btn-primary {
    background: #1a73e8;
    color: white;
}

.message-actions .btn-primary:hover {
    background: #1557b0;
}

.message-actions .btn-secondary {
    background: #f1f3f4;
    color: #5f6368;
}

.message-actions .btn-secondary:hover {
    background: #e8eaed;
}

.result-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 200px;
}

.result-text {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    min-height: 120px;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-text .placeholder-text {
    color: #666;
    text-align: center;
    font-style: italic;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.result-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.copy-btn {
    background: #34a853;
    color: white;
}

.copy-btn:hover {
    background: #2d8e47;
}

.clear-btn {
    background: #f1f3f4;
    color: #5f6368;
}

.clear-btn:hover {
    background: #e8eaed;
}

.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #323232;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: #dc3545;
}

@media (max-width: 768px) {
    .messaging-container {
        grid-template-columns: 1fr;
    }

    .message-actions {
        flex-direction: column;
    }

    .encryption-option {
        flex-direction: column;
    }

    .encryption-option input[type="radio"] {
        margin-top: 0;
    }
}

/* Countdown Timer Styles */
.timer-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 80px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
}

.timer-display {
    text-align: center;
    margin: 2rem 0;
}

.time {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    font-family: monospace;
}

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

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: #4CAF50;
    color: white;
}

.btn.secondary {
    background-color: #2196F3;
    color: white;
}

.btn.danger {
    background-color: #f44336;
    color: white;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.how-to-use, .example {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.how-to-use h3, .example h3 {
    color: #333;
    margin-bottom: 1rem;
}

.example ul {
    list-style-type: none;
    padding-left: 0;
}

.example li {
    padding: 0.5rem 0;
    color: #666;
}

/* SHA256 Generator Styles */
.tool-interface {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.input-section {
    margin-bottom: 20px;
}

.input-section textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.input-section textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.output-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.output-section h3 {
    color: #1a73e8;
    margin-bottom: 15px;
}

.result-container {
    display: flex;
    gap: 10px;
}

.result-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

.result-container input:focus {
    outline: none;
    border-color: #1a73e8;
}

.example-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.example {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.example h4 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.example p {
    margin: 5px 0;
    font-size: 14px;
}

/* Base64 Encoder/Decoder Styles */
.tool-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.tool-description h1 {
    color: #333;
    margin-bottom: 20px;
}

.tool-description p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tool-container {
    position: relative;
    padding-top: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.back-button-container {
    margin-bottom: 20px;
    padding: 10px 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.back-button:hover {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Flashcard Creator Styles */
.flashcard-creator {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.flashcard-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.set-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.set-info input[type="text"],
.set-info textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cards-container {
    margin-top: 30px;
}

.card-form {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-form input[type="text"],
.card-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-preview {
    margin-bottom: 15px;
}

.preview-front,
.preview-back {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.preview-front {
    font-weight: 500;
    color: #333;
}

.preview-back {
    color: #666;
    border-top: 1px dashed #ddd;
}

.study-mode {
    margin-top: 40px;
    text-align: center;
}

.study-area {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.card-display {
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.card {
    position: relative;
    width: 100%;
    height: 300px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
}

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

.study-controls {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.delete-card {
    width: 100%;
    padding: 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-card:hover {
    background: #ff0000;
}

/* Quiz Builder Styles */
.quiz-builder {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quiz-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.quiz-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.quiz-info input[type="text"],
.quiz-info textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.quiz-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.quiz-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.quiz-settings input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.questions-container {
    margin-top: 30px;
}

.question-form {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.question-form select,
.question-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.answer-options {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.option input[type="radio"] {
    margin: 0;
}

.option input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.questions-list {
    margin-top: 30px;
}

.question-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.question-preview {
    flex-grow: 1;
}

.preview-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.preview-type {
    font-size: 14px;
    color: #666;
}

.delete-question {
    padding: 8px 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-question:hover {
    background: #ff0000;
}

.preview-mode {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.preview-area {
    margin-top: 20px;
}

.preview-area.hidden {
    display: none;
}

.quiz-preview {
    padding: 20px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.preview-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.preview-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.preview-option label {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.primary-button {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-button:hover {
    background: #0056b3;
}

.secondary-button {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.secondary-button:hover {
    background: #545b62;
}

.example-section {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.example-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.example-section ol {
    padding-left: 20px;
}

.example-section li {
    margin-bottom: 10px;
    color: #555;
}

/* Mind Map Maker Styles */
.mindmap-editor {
    display: flex;
    flex-direction: column;
    height: 600px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.mindmap-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.toolbar-section {
    display: flex;
    gap: 0.5rem;
}

.toolbar-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-button:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.toolbar-button.danger {
    color: #dc3545;
    border-color: #dc3545;
}

.toolbar-button.danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.mindmap-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.properties-panel {
    width: 300px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.panel-section {
    margin-bottom: 2rem;
}

.panel-section h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.property-group {
    margin-bottom: 1rem;
}

.property-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.input-field,
.select-field {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.input-field:focus,
.select-field:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

textarea.input-field {
    min-height: 100px;
    resize: vertical;
}

.color-picker {
    width: 100%;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.canvas-area {
    flex: 1;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

#mindmapCanvas {
    width: 100%;
    height: 100%;
    cursor: default;
}

.example-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.example-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

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

.back-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* Decision Maker Wheel Styles */
.decision-wheel-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.options-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.options-list {
    background: #ffffff;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.options-list h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.options-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.options-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.options-list li:hover {
    background-color: #f8f9fa;
}

.options-list li button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.options-list li button:hover {
    color: #c82333;
}

.options-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
}

#decisionWheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spin-button {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spin-button:hover {
    background: #357abd;
    transform: translateY(-2px);
}

.spin-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.result-display {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-display h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-text {
    font-size: 1.5rem;
    color: #4a90e2;
    font-weight: 600;
    padding: 1rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .decision-wheel-container {
        padding: 1rem;
    }
    
    .wheel-container {
        max-width: 300px;
    }
    
    .spin-button {
        padding: 0.5rem 1rem;
    }
}

.back-button {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-container .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-container .back-button:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}