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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo-sidebar {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.logo-title {
    font-size: 22px;
    font-weight: 600;
    color: #333333;
    letter-spacing: 0.5px;
}

.content-area {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-layout {
        flex-direction: row;
    }

    .logo-sidebar {
        width: 33.3333%;
        min-height: 100vh;
        position: sticky;
        top: 0;
        height: 100vh;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
        padding: 40px 20px;
    }

    .logo-img {
        width: 140px;
        height: 140px;
        margin-bottom: 20px;
    }

    .logo-title {
        font-size: 28px;
    }

    .content-area {
        width: 66.6666%;
        padding: 0 40px 0 20px;
    }
}

.item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

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

.item-icon {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    flex-shrink: 0;
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.item-subtitle {
    font-size: 16px;
    color: #666666;
}

.item-link {
    color: #007aff;
    text-decoration: none;
    margin-left: 8px;
}

.item-link:hover {
    text-decoration: underline;
}

.item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.item-select,
.item-btn {
    padding: 8px 16px;
    font-size: 15px;
    border: 1px solid #999999;
    border-radius: 4px;
    background-color: #f5f5f5;
    color: #333333;
    cursor: pointer;
}

.item-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-btn img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.item-select:hover,
.item-btn:hover {
    background-color: #e8e8e8;
}

.mnemonic-input-section {
    padding: 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.word-inputs-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 15px;
    margin-bottom: 20px;
}

.word-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.word-number {
    font-size: 14px;
    color: #666666;
    width: 22px;
    flex-shrink: 0;
}

.word-input {
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
    font-size: 14px;
    border: 1px solid #999999;
    border-radius: 4px;
    outline: none;
}

.word-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.pas-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.pas-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pas-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.help-icon {
    font-size: 18px;
    cursor: help;
}

.import-section {
    display: flex;
    justify-content: flex-end;
}

.import-btn {
    padding: 10px 24px;
    font-size: 16px;
    border: 1px solid #999999;
    border-radius: 4px;
    background-color: #e0e0e0;
    color: #999999;
    cursor: not-allowed;
}

.import-btn:not(:disabled) {
    background-color: #007aff;
    color: #ffffff;
    border-color: #007aff;
    cursor: pointer;
}

.inf-import-section {
    padding: 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.password-section {
    width: 100%;
}

.password-label {
    font-size: 16px;
    color: #666666;
    margin-bottom: 12px;
}

.password-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.inf-password-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #999999;
    border-radius: 4px;
    outline: none;
}

.inf-password-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0,122,255,0.2);
}

.inf-import-btn {
    padding: 10px 24px;
    font-size: 15px;
    border: 1px solid #007aff;
    border-radius: 4px;
    background-color: #007aff;
    color: #fff;
    cursor: pointer;
}

.inf-import-btn:hover {
    background-color: #0056b3;
}

.hidden {
    display: none !important;
}

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

.pas-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pas-label {
    font-size: 15px;
    color: #333333;
    width: 80px;
}

.pas-input {
    flex: 1;
    padding: 8px 10px;
    font-size: 15px;
    border: 1px solid #999999;
    border-radius: 4px;
    outline: none;
}

.pas-input:focus {
    border-color: #007aff;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}
