/**
 * UUID Generator Styles - Japanese Version
 * UUIDジェネレーター専用スタイル
 *
 * @package Zipper
 */

/* オプションエリア */
.uuid-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
}

.uuid-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.uuid-option-group label {
    font-size: 14px;
    color: #5f5a56;
    font-weight: 500;
}

.uuid-option-group select,
.uuid-option-group input[type="number"] {
    padding: 10px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 14px;
    min-width: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uuid-option-group select:focus,
.uuid-option-group input[type="number"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.uuid-option-group input[type="number"] {
    width: 90px;
}

/* チェックボックスオプション */
.uuid-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
}

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

.uuid-checkbox-group label {
    font-size: 14px;
    color: #2d2a26;
    cursor: pointer;
}

/* 結果エリア */
.uuid-result-area {
    margin-bottom: 1.5rem;
}

.uuid-output {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #faf9f7;
    color: #2d2a26;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uuid-output:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 結果カウント */
.uuid-count-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding: 10px 14px;
    background: #faf9f7;
    border-radius: 8px;
    font-size: 13px;
    color: #5f5a56;
}

.uuid-count-info .count {
    color: #d4af37;
    font-weight: 700;
}

/* UUID検証セクション */
.uuid-validate-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e4dc;
}

.uuid-validate-section .tool-section-title {
    font-size: 15px;
    margin-bottom: 1rem;
}

.uuid-validate-input {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.uuid-validate-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uuid-validate-input input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.uuid-validate-input input::placeholder {
    color: #8c8579;
}

/* 検証結果 */
.uuid-validate-result {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.uuid-validate-result.valid {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.3);
    color: #2e7d32;
}

.uuid-validate-result.invalid {
    display: block;
    background: rgba(220, 50, 50, 0.1);
    border: 1px solid rgba(220, 50, 50, 0.3);
    color: #dc3232;
}

.uuid-validate-result i {
    margin-right: 0.5rem;
}

.uuid-validate-result .uuid-info {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(46, 125, 50, 0.2);
    font-size: 13px;
    color: #5f5a56;
    width: 100%;
}

/* 履歴セクション */
.uuid-history-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e4dc;
}

.uuid-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.uuid-history-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.uuid-history-header h3 i {
    color: #d4af37;
}

.uuid-history-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
}

.uuid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e4dc;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    background: #fff;
}

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

.uuid-history-item:hover {
    background: #faf9f7;
}

.uuid-history-item .uuid-value {
    flex: 1;
    color: #2d2a26;
    word-break: break-all;
}

.uuid-history-item .uuid-time {
    font-size: 12px;
    color: #8c8579;
    margin-left: 1rem;
    white-space: nowrap;
}

.uuid-history-item .uuid-copy-btn {
    padding: 6px 10px;
    margin-left: 0.5rem;
    border: 1px solid #e8e4dc;
    background: #fff;
    color: #5f5a56;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.uuid-history-item .uuid-copy-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #fff;
}

.uuid-history-empty {
    padding: 2rem;
    text-align: center;
    color: #8c8579;
    font-size: 14px;
    background: #fff;
}

/* ボタンエリア */
.uuid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .uuid-options {
        flex-direction: column;
        gap: 1rem;
    }

    .uuid-option-group {
        width: 100%;
    }

    .uuid-checkbox-group {
        padding-top: 0;
    }

    .uuid-validate-input {
        flex-direction: column;
    }

    .uuid-history-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .uuid-history-item .uuid-time {
        margin-left: 0;
        order: 3;
        width: 100%;
    }
}
