/* Tool Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
}

.back-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: #ff5252;
}

/* Calculator Styles */
.calculator {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.display {
    margin-bottom: 15px;
}

.display input {
    width: 100%;
    height: 60px;
    font-size: 2rem;
    text-align: right;
    padding: 0 15px;
    border: none;
    background-color: #ecf0f1;
    border-radius: 5px;
    outline: none;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

.buttons button {
    padding: 20px;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons button:hover {
    background-color: #2980b9;
}

.buttons .equals {
    grid-row: span 2;
    background-color: #e74c3c;
}

.buttons .equals:hover {
    background-color: #c0392b;
}

/* Scientific Calculator Styles */
.scientific-calculator {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scientific-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    margin-top: 15px;
}

.scientific-buttons button {
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.scientific-buttons button:hover {
    background-color: #2980b9;
}

/* Dice Roller Styles */
.dice-container {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dice {
    font-size: 5rem;
    margin: 20px 0;
    transition: transform 1s;
}

.dice.rolling {
    animation: roll 1s infinite;
}

@keyframes roll {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.roll-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.roll_btn:hover {
    background-color: #2980b9;
}

.result {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: bold;
}

/* Slot Machine Styles */
.slot-machine {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.reels {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.reel {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.spin-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.spin-btn:hover {
    background-color: #218838;
}

.result-text {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: bold;
}

.win {
    color: #28a745;
}

.lose {
    color: #dc3545;
}

/* Word Repeater Styles */
.word-repeater {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.repeat-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.repeat-btn:hover {
    background-color: #2980b9;
}

.output {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    min-height: 50px;
    border: 1px solid #dee2e6;
}

/* Password Generator Styles */
.password-generator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.options {
    margin: 20px 0;
}

.options label {
    display: block;
    margin: 10px 0;
    font-size: 1.1rem;
}

.options input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.generate-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.generate-btn:hover {
    background-color: #2980b9;
}

.result {
    margin: 20px 0;
}

.result input {
    font-size: 1.2rem;
}

.copy-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.copy-btn:hover {
    background-color: #218838;
}

.strength {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    min-height: 1.5em;
}

/* ASCII Converter Styles */
.ascii-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ascii-converter .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.convert-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.convert-btn:hover {
    background-color: #2980b9;
}

.info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

/* Unit Converter Styles */
.unit-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.converter-type {
    margin-bottom: 20px;
}

.converter-type select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.units {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

.unit-select {
    flex: 1;
}

.unit-select select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
    min-height: 1.5em;
    border: 1px solid #dee2e6;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

.success {
    color: #28a745;
    font-weight: bold;
}

/* Currency Converter Styles */
.currency-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.currencies {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}

.currency-select {
    flex: 1;
}

.currency-select select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.swap-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.swap-btn button:hover {
    background-color: #2980b9;
}

/* BMI Calculator Styles */
.bmi-calculator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.unit-toggle label {
    font-size: 1.1rem;
}

.unit-toggle input[type="radio"] {
    margin-right: 5px;
}

.input-with-unit {
    display: flex;
    align-items: center;
}

.input-with-unit input {
    flex: 1;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.input-with-unit span {
    padding: 10px;
    background: #e9ecef;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 5px 5px 0;
    min-width: 50px;
    text-align: center;
}

.calculate-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.bmi-chart {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.bmi-chart ul {
    margin-top: 10px;
    padding-left: 20px;
}

.bmi-chart li {
    margin: 5px 0;
}

/* Loan Calculator Styles */
.loan-calculator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.amortization {
    margin-top: 20px;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.amortization-table th,
.amortization-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.amortization-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.amortization-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Todo List Styles */
.todo-list {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.todo-list .input-group {
    display: flex;
    margin-bottom: 20px;
}

.todo-list input[type="text"] {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.add-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-btn:hover {
    background-color: #2980b9;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.todo-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.todo-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: #999;
}

.todo-checkbox {
    margin-right: 15px;
    transform: scale(1.3);
}

.todo-text {
    flex: 1;
    font-size: 1.1rem;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background-color: #c82333;
}

.todo-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.clear-btn {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background-color: #e0a800;
}

/* Note Taker Styles */
.note-taker {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.note-form {
    margin-bottom: 30px;
}

.save-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #2980b9;
}

.search-box {
    margin: 15px 0;
}

.search-box input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.notes-container {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.note-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.note-item:hover {
    background-color: #e9ecef;
}

.note-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.note-content {
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.note-date {
    font-size: 0.8rem;
    color: #666;
}

.delete-note-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    float: right;
}

.delete-note-btn:hover {
    background-color: #c82333;
}

/* Weather App Styles */
.weather-app {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.weather-app .search-box {
    display: flex;
    margin-bottom: 20px;
}

.weather-app .search-box input {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
}

.search-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #2980b9;
}

.weather-info {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

.current-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.weather-icon {
    font-size: 4rem;
    margin: 10px 0;
}

.temperature {
    font-size: 3rem;
    font-weight: bold;
}

.weather-description {
    font-size: 1.2rem;
    margin: 10px 0;
}

.weather-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.detail {
    text-align: center;
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: bold;
}

.forecast-title {
    text-align: center;
    margin: 20px 0 10px;
}

.forecast-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.forecast-item {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    min-width: 100px;
}

.forecast-day {
    font-weight: bold;
    margin-bottom: 5px;
}

.forecast-icon {
    font-size: 2rem;
    margin: 5px 0;
}

.forecast-temp {
    font-size: 1.2rem;
    font-weight: bold;
}

/* QR Code Generator Styles */
.qr-generator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.qr-result {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code {
    max-width: 100%;
    height: auto;
}

.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.download-btn:hover:not(:disabled) {
    background-color: #218838;
}

.download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Color Picker Styles */
.color-picker {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.color-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.color-display {
    width: 150px;
    height: 150px;
    border: 2px solid #333;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #000000;
}

.color-info {
    font-size: 1.2rem;
    font-weight: bold;
}

.sliders {
    margin: 20px 0;
}

.slider-group {
    margin-bottom: 15px;
}

.slider-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.slider-group input[type="range"] {
    width: 100%;
}

.saved-colors {
    margin-top: 20px;
}

.colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
}

.save-color-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-color-btn:hover {
    background-color: #2980b9;
}

/* Hex Color Converter Styles */
.hex-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.converter-section {
    margin-bottom: 30px;
}

.converter-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.color-preview-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-preview-display {
    width: 120px;
    height: 120px;
    border: 2px solid #333;
    border-radius: 10px;
    margin-bottom: 10px;
    background-color: #FF5733;
}

.color-preview-info {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Random Number Generator Styles */
.random-number-generator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.options {
    margin: 20px 0;
}

.options label {
    display: block;
    margin: 10px 0;
    font-size: 1.1rem;
}

.options input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
}

.history {
    margin-top: 30px;
}

.history ul {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.history li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.history li:last-child {
    border-bottom: none;
}

/* Coin Flipper Styles */
.coin-flipper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.coin-container {
    perspective: 1000px;
    margin: 20px 0;
}

.coin {
    width: 150px;
    height: 150px;
    position: relative;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 1s;
}

.coin.flipping {
    animation: flip 1s ease-in-out;
}

@keyframes flip {
    0% { transform: rotateY(0); }
    25% { transform: rotateY(180deg); }
    50% { transform: rotateY(360deg); }
    75% { transform: rotateY(540deg); }
    100% { transform: rotateY(720deg); }
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    backface-visibility: hidden;
    border: 3px solid #333;
}

.coin-front {
    background-color: gold;
    color: #333;
}

.coin-back {
    background-color: silver;
    color: #333;
    transform: rotateY(180deg);
}

.flip-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 20px 0;
}

.flip-btn:hover {
    background-color: #2980b9;
}

.stats {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.reset-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reset-btn:hover {
    background-color: #c82333;
}

/* Rock Paper Scissors Styles */
.rps-game {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.choice-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.choice-btn:hover {
    background-color: #2980b9;
}

.game-display {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
}

.player-choice, .computer-choice {
    flex: 1;
}

.choice-icon {
    font-size: 4rem;
    margin: 10px 0;
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.scoreboard {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.scores {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-item span:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Morse Code Translator Styles */
.morse-translator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.translator-section {
    margin-bottom: 30px;
}

.translator-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.morse-reference {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.reference-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.reference-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-char {
    font-weight: bold;
    font-size: 1.2rem;
}

.reference-morse {
    font-family: monospace;
    font-size: 1.1rem;
}

/* Text Analyzer Styles */
.text-analyzer {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.analyze-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.analyze-btn:hover {
    background-color: #2980b9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

.additional-stats {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.word-frequency {
    margin: 30px 0;
}

.frequency-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.frequency-item:last-child {
    border-bottom: none;
}

/* Palindrome Checker Styles */
.palindrome-checker {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.check-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.check-btn:hover {
    background-color: #2980b9;
}

.examples {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.example-list {
    margin-top: 15px;
}

.example-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.example-item:last-child {
    border-bottom: none;
}

.explanation {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.explanation p {
    margin: 10px 0;
}

/* Age Calculator Styles */
.age-calculator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.calculate-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 20px 0;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detail-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.detail-label {
    font-size: 1rem;
    color: #666;
}

.additional-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

/* Roman Numeral Converter Styles */
.roman-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reference-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.reference-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-char {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.reference-value {
    font-size: 1.1rem;
    color: #666;
}

.rules {
    margin-top: 20px;
    padding: 15px;
    background: #e9f7fe;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.rules ul {
    margin-top: 10px;
    padding-left: 20px;
}

.rules li {
    margin: 8px 0;
}

/* Binary Converter Styles */
.binary-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Base64 Encoder Styles */
.base64-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-section {
    margin-top: 30px;
}

.info-section .info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.info-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-section li {
    margin: 8px 0;
}

/* Lorem Ipsum Generator Styles */
.lorem-ipsum-generator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.options-section {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.option-group input[type="number"] {
    width: 100px;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.option-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.output-section {
    margin-bottom: 30px;
}

.output-container {
    margin: 15px 0;
}

.output-container textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    background-color: #f8f9fa;
}

.actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.actions button {
    flex: 1;
    min-width: 150px;
}

/* Cipher Tools Styles */
.cipher-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cipher-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cipher-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.encrypt-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 15px 0;
}

.encrypt-btn:hover {
    background-color: #2980b9;
}

.decrypt-btn {
    background-color: #9b59b6;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 15px 0;
}

.decrypt-btn:hover {
    background-color: #8e44ad;
}

.brute-force-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin: 15px 0;
}

.brute-force-btn:hover {
    background-color: #c0392b;
}

.examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.example-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.example-output {
    color: #3498db;
    font-weight: bold;
}

.atbash-mapping {
    margin: 20px 0;
}

.mapping-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
}

.mapping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plain, .cipher {
    font-size: 1.5rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.plain {
    background-color: #3498db;
    color: white;
}

.cipher {
    background-color: #9b59b6;
    color: white;
}

.arrow {
    margin: 5px 0;
    font-size: 1.2rem;
}

#fileInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.download-btn:hover:not(:disabled) {
    background-color: #218838;
}

.download-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#hexMode {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Time Zone Converter Styles */
.time-zone-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timezones {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}

.timezone-select {
    flex: 1;
}

.timezone-select select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.swap-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.swap-btn button:hover {
    background-color: #2980b9;
}

.current-times {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.current-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.time-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.time-label {
    font-size: 1rem;
    color: #666;
}

/* Stopwatch Styles */
.stopwatch-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.time-display {
    font-size: 3rem;
    font-family: 'Courier New', monospace;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls button {
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#startBtn {
    background-color: #28a745;
    color: white;
}

#startBtn:hover:not(:disabled) {
    background-color: #218838;
}

#pauseBtn {
    background-color: #ffc107;
    color: black;
}

#pauseBtn:hover:not(:disabled) {
    background-color: #e0a800;
}

#resetBtn {
    background-color: #dc3545;
    color: white;
}

#resetBtn:hover {
    background-color: #c82333;
}

/* Timer Styles */
.timer-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.time-input {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.time-input .input-group {
    margin-bottom: 0;
}

.time-input input {
    width: 80px;
    padding: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.status {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em;
}

/* Countdown Timer Styles */
.countdown-timer {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.time-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input {
    width: 80px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.controls {
    margin: 20px 0;
}

.controls button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: #2980b9;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 100%;
}

#progressFill {
    height: 100%;
    background-color: #2ecc71;
    width: 0%;
    transition: width 1s linear;
}

/* Tip Calculator Styles */
.tip-calculator {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tip-calculator .input-group {
    margin-bottom: 20px;
}

.tip-calculator .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.tip-calculator .input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculate-btn-container {
    text-align: center;
    margin: 20px 0;
}

.calculate-btn-container button {
    padding: 12px 30px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calculate-btn-container button:hover {
    background-color: #27ae60;
}

.results {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span:last-child {
    font-weight: bold;
}

/* Advanced Unit Converter Styles */
.advanced-unit-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.category-selector {
    margin-bottom: 20px;
    text-align: center;
}

.category-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.category-selector select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

.conversion-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.input-group select {
    width: 150px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.swap-btn-container {
    text-align: center;
}

#swapBtn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#swapBtn:hover {
    background-color: #2980b9;
}

.convert-btn-container {
    text-align: center;
    margin: 20px 0;
}

#convertBtn {
    padding: 15px 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#convertBtn:hover {
    background-color: #2980b9;
}

/* Image Editor Styles */
.image-editor {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.upload-section {
    margin-bottom: 20px;
}

#uploadBtn, #downloadBtn {
    padding: 12px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#uploadBtn {
    background-color: #3498db;
    color: white;
}

#uploadBtn:hover {
    background-color: #2980b9;
}

#downloadBtn {
    background-color: #2ecc71;
    color: white;
}

#downloadBtn:hover {
    background-color: #27ae60;
}

#downloadBtn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.canvas-container {
    margin: 20px 0;
    text-align: center;
}

#imageCanvas {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.controls {
    margin-top: 20px;
}

.control-group {
    margin: 15px 0;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
    padding: 0;
}

#resetBtn {
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#resetBtn:hover {
    background-color: #c0392b;
}

/* Password Strength Analyzer Styles */
.password-strength-analyzer {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.password-strength-analyzer .input-group {
    margin-bottom: 20px;
}

.password-strength-analyzer .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.password-strength-analyzer .input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.analyze-btn-container {
    text-align: center;
    margin: 20px 0;
}

.analyze-btn-container button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.analyze-btn-container button:hover {
    background-color: #2980b9;
}

.strength-result {
    margin: 30px 0;
    text-align: center;
}

.strength-result h3 {
    margin-bottom: 15px;
}

#strengthLevel {
    font-weight: bold;
}

#strengthLevel.very-weak {
    color: #e74c3c;
}

#strengthLevel.weak {
    color: #e67e22;
}

#strengthLevel.fair {
    color: #f1c40f;
}

#strengthLevel.good {
    color: #3498db;
}

#strengthLevel.strong {
    color: #2ecc71;
}

.strength-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

#strengthIndicator {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.criteria, .suggestions {
    margin: 20px 0;
}

.criteria h3, .suggestions h3 {
    margin-bottom: 15px;
}

.criteria ul, .suggestions ul {
    list-style-type: none;
    padding: 0;
}

.criteria li, .suggestions li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.criteria li:last-child, .suggestions li:last-child {
    border-bottom: none;
}

.criteria li.valid::before {
    content: "✓ ";
    color: #2ecc71;
    font-weight: bold;
}

.criteria li.invalid::before {
    content: "✗ ";
    color: #e74c3c;
    font-weight: bold;
}

/* File Size Converter Styles */
.file-size-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.file-size-converter .input-group {
    margin-bottom: 20px;
}

.file-size-converter .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.file-size-converter .input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.file-size-converter .units {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}

.file-size-converter .unit-select {
    flex: 1;
}

.file-size-converter .unit-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.file-size-converter .unit-select select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.file-size-converter .swap-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: fit-content;
}

.file-size-converter .swap-btn button:hover {
    background-color: #2980b9;
}

.file-size-converter .convert-btn-container {
    text-align: center;
    margin: 20px 0;
}

.file-size-converter .convert-btn-container button {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-size-converter .convert-btn-container button:hover {
    background-color: #2980b9;
}

.file-size-converter .result {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.file-size-converter .result h3 {
    margin-bottom: 15px;
}

.file-size-converter .result #conversionResult {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.file-size-converter .info {
    margin-top: 30px;
    padding: 20px;
    background: #e9f7fe;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.file-size-converter .info h3 {
    margin-bottom: 15px;
}

.file-size-converter .info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.file-size-converter .info li {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .buttons {
        grid-gap: 5px;
    }
    
    .buttons button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .scientific-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reels {
        gap: 10px;
    }
    
    .reel {
        width: 70px;
        height: 70px;
    }
}

/* URL Encoder/Decoder Styles */
.url-tool {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.url-tool .input-group {
    margin-bottom: 20px;
}

.url-tool .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.url-tool .input-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.url-tool .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.url-tool .buttons button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 120px;
}

.url-tool .buttons button:first-child {
    background-color: #3498db;
    color: white;
}

.url-tool .buttons button:first-child:hover {
    background-color: #2980b9;
}

.url-tool .buttons button:nth-child(2) {
    background-color: #9b59b6;
    color: white;
}

.url-tool .buttons button:nth-child(2):hover {
    background-color: #8e44ad;
}

.url-tool .buttons button:nth-child(3) {
    background-color: #e67e22;
    color: white;
}

.url-tool .buttons button:nth-child(3):hover {
    background-color: #d35400;
}

.url-tool .buttons button:last-child {
    background-color: #2ecc71;
    color: white;
}

.url-tool .buttons button:last-child:hover {
    background-color: #27ae60;
}

.url-tool .info {
    margin-top: 30px;
    padding: 20px;
    background: #e9f7fe;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.url-tool .info h3 {
    margin-bottom: 15px;
}

.url-tool .info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.url-tool .info li {
    margin: 8px 0;
}

/* File Size Converter Styles */
.file-size-converter {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.file-size-converter .input-group {
    margin-bottom: 20px;
}

.file-size-converter .input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.file-size-converter .input-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.file-size-converter .units {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}

.file-size-converter .unit-select {
    flex: 1;
}

.file-size-converter .unit-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.file-size-converter .unit-select select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.file-size-converter .swap-btn button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: fit-content;
}

.file-size-converter .swap-btn button:hover {
    background-color: #2980b9;
}

.file-size-converter .convert-btn-container {
    text-align: center;
    margin: 20px 0;
}

.file-size-converter .convert-btn-container button {
    padding: 15px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-size-converter .convert-btn-container button:hover {
    background-color: #2980b9;
}

.file-size-converter .result {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.file-size-converter .result h3 {
    margin-bottom: 15px;
}

.file-size-converter .result #conversionResult {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
}

.file-size-converter .info {
    margin-top: 30px;
    padding: 20px;
    background: #e9f7fe;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.file-size-converter .info h3 {
    margin-bottom: 15px;
}

.file-size-converter .info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.file-size-converter .info li {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 1rem;
        gap: 1rem;
    }
    
    .time-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .currencies, .units {
        flex-direction: column;
        align-items: stretch;
    }
    
    .swap-btn {
        text-align: center;
        margin: 10px 0;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .stats-grid, .current-time-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-container {
        flex-wrap: wrap;
    }
    
    .color-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .color-display {
        width: 150px;
        height: 150px;
    }
    
    .reference-table {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .amortization-table th,
    .amortization-table td {
        padding: 5px;
        font-size: 0.8rem;
    }
    
    .filters {
        flex-wrap: wrap;
    }
    
    .todo-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .weather-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .forecast-container {
        justify-content: center;
    }
    
    .color-preview {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .color-display {
        width: 100px;
        height: 100px;
    }
    
    .hex-converter {
        padding: 20px;
    }
    
    .coin {
        width: 100px;
        height: 100px;
    }
    
    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .game-display {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs {
        font-size: 1.5rem;
    }
    
    .scores {
        flex-direction: column;
        gap: 10px;
    }
    
    .reference-table {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .timezones {
        flex-direction: column;
        align-items: center;
    }
    
    .current-time-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 15px 10px;
    }
    
    .time-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group input {
        width: 100px;
    }
    
    .currencies, .units {
        flex-direction: column;
    }
    
    .unit-select, .currency-select {
        width: 100%;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .color-display {
        width: 120px;
        height: 120px;
    }
    
    .reference-table {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .detail-value {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .amortization-table {
        font-size: 0.7rem;
    }
    
    .amortization-table th,
    .amortization-table td {
        padding: 3px;
    }
    
    .todo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .todo-checkbox {
        margin-right: 0;
    }
    
    .weather-display {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .temp-display {
        font-size: 2.5rem;
    }
    
    .forecast-day {
        min-width: 70px;
        height: 70px;
    }
}
