/* Enhanced styling for omoiji.com tools plugin */

.omoiji-tools-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.omoiji-tools-container h2 {
    color: #23282d;
    margin-top: 0;
    font-size: 28px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.omoiji-tools-container p {
    color: #444;
    font-size: 16px;
    line-height: 1.6;
}

.tool-content,
.tool-selection-interface {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.tool-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.tool-card h4 {
    margin-top: 0;
    color: #23282d;
    font-size: 18px;
}

.tool-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.button:hover {
    background: #005a87;
    text-decoration: none;
}

.omoiji-tool-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.omoiji-tool-form p {
    margin-bottom: 18px;
}

.omoiji-tool-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
    font-size: 15px;
}

.omoiji-tool-form .tool-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.omoiji-tool-form .tool-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.omoiji-tool-form .tool-action {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.omoiji-tool-form .tool-submit {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    margin-right: 10px;
}

.tool-results {
    margin-top: 25px;
    padding: 20px;
    background: #e8f4fd;
    border: 1px solid #bfe2f3;
    border-radius: 8px;
}

.tool-results h4 {
    margin-top: 0;
    color: #0073aa;
    font-size: 18px;
}

.tool-results .tool-output {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #bfe2f3;
    border-radius: 6px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    background: #fff;
    color: #333;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tool-results .tool-output:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.tool-copy-btn {
    margin-top: 15px;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tool-copy-btn:hover {
    background: #005a87;
}

.tool-navigation {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.back-to-tools-link {
    color: #0073aa;
    text-decoration: none;
}

.back-to-tools-link:hover {
    text-decoration: underline;
}

/* Tool description section */
.tool-description {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    margin-bottom: 20px;
}

.tool-description h3 {
    margin-top: 0;
    color: #23282d;
    font-size: 18px;
}

.tool-description p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

/* Input help text */
.input-help {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Character counter specific styles */
.counter-stats {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.counter-stats p {
    margin: 8px 0;
    font-size: 16px;
}

.counter-stats strong {
    color: #23282d;
}

/* Password generator specific styles */
.settings-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
    font-size: 14px;
}

.tool-slider {
    width: 100%;
    margin-bottom: 5px;
}

.tool-color-picker {
    width: 50px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px;
}

.checkbox-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.checkbox-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
}

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

.password-display input {
    flex: 1;
    margin: 0;
}

.password-strength {
    padding: 10px;
    background: #f0f8ff;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

/* QR code specific styles */
.qr-code-display {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin: 15px 0;
}

.qr-code-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qr-code-actions {
    margin-top: 15px;
}

/* Image trimmer specific styles */
.image-trimming-controls {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    margin: 15px 0;
}

.image-trimming-controls .setting-item {
    margin-bottom: 15px;
}

.image-trimming-controls label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #23282d;
}

.image-trimming-controls input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Japanese text processing specific styles */
.japanese-text-output {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    margin: 15px 0;
}

.japanese-text-output p {
    margin: 10px 0;
    line-height: 1.6;
}

.furigana-text {
    line-height: 2.2;
}

.furigana-text ruby {
    display: inline-flex;
    flex-direction: column-reverse;
    text-align: center;
}

.furigana-text rt {
    font-size: 0.5em;
    line-height: 1.2;
}

.furigana-text rp {
    font-size: 0.6em;
}

/* Timestamp converter specific styles */
.timestamp-result {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
}

.timestamp-result p {
    margin: 8px 0;
    font-size: 16px;
}

.timestamp-result strong {
    color: #23282d;
}

/* Emoji list specific styles */
.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.emoji-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image drag and drop area specific styles */
.image-drag-drop-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.image-drag-drop-area:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.image-drag-drop-area.drag-over {
    border-color: #0073aa;
    background: #e6f7ff;
    transform: scale(1.02);
}

.image-drag-drop-area p {
    margin: 0;
    color: #666;
}

.image-drag-drop-area a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.image-drag-drop-area a:hover {
    text-decoration: underline;
}

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

.emoji-symbol {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.emoji-name {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    word-break: break-all;
}

.emoji-item .button.tiny {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0;
}

/* Roulette specific styles */
.roulette-result {
    text-align: center;
    padding: 20px;
    background: #e6f7ff;
    border-radius: 8px;
    border: 2px dashed #1890ff;
}

.selected-option {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    margin: 0;
}

/* Countdown timer specific styles */
.countdown-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: #0073aa;
    color: white;
    border-radius: 8px;
    padding: 15px;
    min-width: 80px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.countdown-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.countdown-message {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    color: #52c41a;
    font-weight: bold;
}

/* Tool breadcrumb */
.tool-breadcrumb ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 15px 0;
    font-size: 14px;
}

.tool-breadcrumb li:not(:last-child)::after {
    content: " > ";
    margin: 0 8px;
    color: #999;
}

.tool-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .omoiji-tools-container {
        margin: 10px;
        padding: 15px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

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

    .countdown-item {
        width: 100%;
        max-width: 200px;
    }

    .password-display {
        flex-direction: column;
    }
}